From 5dc7a20c1ce8fa7e91be8d6eb771c3df612013ec Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 18 May 2012 16:20:15 +0000 Subject: [PATCH] Fix compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mifare-classic-write-ndef.c:67: warning: no previous prototype for ‘search_sector_key’ mifare-classic-write-ndef.c:105: warning: no previous prototype for ‘fix_mad_trailer_block’ --- examples/mifare-classic-write-ndef.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mifare-classic-write-ndef.c b/examples/mifare-classic-write-ndef.c index 746b299..39898c6 100644 --- a/examples/mifare-classic-write-ndef.c +++ b/examples/mifare-classic-write-ndef.c @@ -62,7 +62,7 @@ const uint8_t ndef_default_msg[33] = { uint8_t *ndef_msg; size_t ndef_msg_len; -int +static int search_sector_key (MifareTag tag, MifareClassicSectorNumber sector, MifareClassicKey *key, MifareClassicKeyType *key_type) { MifareClassicBlockNumber block = mifare_classic_sector_last_block (sector); @@ -100,7 +100,7 @@ search_sector_key (MifareTag tag, MifareClassicSectorNumber sector, MifareClassi return 0; } -int +static int fix_mad_trailer_block (nfc_device *device, MifareTag tag, MifareClassicSectorNumber sector, MifareClassicKey key, MifareClassicKeyType key_type) { MifareClassicBlock block;