From 2e075df1a90f2114200970c04c0c8a2cebf25b4c Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sun, 13 May 2012 12:57:49 +0000 Subject: [PATCH] Fix compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nfc-emulate-forum-tag4.c:117: warning: no previous prototype for ‘nfcforum_tag4_io’ nfc-emulate-forum-tag4.c:231: warning: no previous prototype for ‘stop_emulation’ nfc-emulate-forum-tag4.c:241: warning: no previous prototype for ‘ndef_message_load’ nfc-emulate-forum-tag4.c:269: warning: no previous prototype for ‘ndef_message_save’ nfc-emulate-forum-tag4.c:285: warning: no previous prototype for ‘usage’ --- utils/nfc-emulate-forum-tag4.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/nfc-emulate-forum-tag4.c b/utils/nfc-emulate-forum-tag4.c index 68edf4a..c89453a 100644 --- a/utils/nfc-emulate-forum-tag4.c +++ b/utils/nfc-emulate-forum-tag4.c @@ -112,7 +112,7 @@ uint8_t nfcforum_capability_container[] = { #define ISO144434A_RATS 0xE0 -int +static int nfcforum_tag4_io (struct nfc_emulator *emulator, const uint8_t *data_in, const size_t data_in_len, uint8_t *data_out, const size_t data_out_len) { int res = 0; @@ -227,7 +227,7 @@ nfcforum_tag4_io (struct nfc_emulator *emulator, const uint8_t *data_in, const s return res; } -void stop_emulation (int sig) +static void stop_emulation (int sig) { (void) sig; if (pnd) @@ -236,7 +236,7 @@ void stop_emulation (int sig) exit (EXIT_FAILURE); } -size_t +static size_t ndef_message_load (char *filename, struct nfcforum_tag4_ndef_data *tag_data) { struct stat sb; @@ -264,7 +264,7 @@ ndef_message_load (char *filename, struct nfcforum_tag4_ndef_data *tag_data) return sb.st_size; } -size_t +static size_t ndef_message_save (char *filename, struct nfcforum_tag4_ndef_data *tag_data) { FILE *F; @@ -280,7 +280,7 @@ ndef_message_save (char *filename, struct nfcforum_tag4_ndef_data *tag_data) return tag_data->ndef_file_len - 2; } -void +static void usage (char *progname) { fprintf (stderr, "usage: %s [infile [outfile]]\n", progname);