From 7f9ba48018a2c43cb4ce1493f19318d03ec6e012 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sun, 13 May 2012 12:56:41 +0000 Subject: [PATCH] Fix compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nfc-read-forum-tag3.c:63: warning: no previous prototype for ‘print_usage’ nfc-read-forum-tag3.c:70: warning: no previous prototype for ‘stop_select’ nfc-read-forum-tag3.c:80: warning: no previous prototype for ‘build_felica_frame’ nfc-read-forum-tag3.c:91: warning: no previous prototype for ‘nfc_forum_tag_type3_check’ --- utils/nfc-read-forum-tag3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/nfc-read-forum-tag3.c b/utils/nfc-read-forum-tag3.c index 6d11d4c..06721c3 100644 --- a/utils/nfc-read-forum-tag3.c +++ b/utils/nfc-read-forum-tag3.c @@ -58,7 +58,7 @@ static nfc_device *pnd; -void +static void print_usage(char *progname) { fprintf (stderr, "usage: %s -o FILE\n", progname); @@ -66,7 +66,7 @@ print_usage(char *progname) fprintf (stderr, " -o Extract NDEF message if available in FILE\n"); } -void stop_select (int sig) +static void stop_select (int sig) { (void) sig; if (pnd) @@ -75,7 +75,7 @@ void stop_select (int sig) exit (EXIT_FAILURE); } -void +static void build_felica_frame(const nfc_felica_info nfi, const uint8_t command, const uint8_t *payload, const size_t payload_len, uint8_t *frame, size_t *frame_len) { frame[0] = 1 + 1 + 8 + payload_len; @@ -86,7 +86,7 @@ build_felica_frame(const nfc_felica_info nfi, const uint8_t command, const uint8 } #define CHECK 0x06 -int +static int nfc_forum_tag_type3_check (nfc_device *pnd, const nfc_target nt, const uint16_t block, const uint8_t block_count, uint8_t *data, size_t *data_len) { uint8_t payload[1024] = {