From b3e21fecd2255c548cc04b893ec5e05a74f1d92b Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sun, 13 May 2012 12:39:17 +0000 Subject: [PATCH] Fix compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nfc-poll.c:57: warning: no previous prototype for ‘stop_polling’ nfc-poll.c:67: warning: no previous prototype for ‘print_usage’ --- examples/nfc-poll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nfc-poll.c b/examples/nfc-poll.c index aa64ec1..c9f95f4 100644 --- a/examples/nfc-poll.c +++ b/examples/nfc-poll.c @@ -53,7 +53,7 @@ static nfc_device *pnd = NULL; -void stop_polling (int sig) +static void stop_polling (int sig) { (void) sig; if (pnd) @@ -62,7 +62,7 @@ void stop_polling (int sig) exit (EXIT_FAILURE); } -void +static void print_usage (const char* progname) { printf ("usage: %s [-v]\n", progname);