From 96b164352293fb80f4cb6beb782ac6b9646dd749 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sun, 13 May 2012 12:46:33 +0000 Subject: [PATCH] Remove an explicit cast and fix a compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nfc-emulate-tag.c:180: warning: function declaration isn’t a prototype --- examples/nfc-emulate-tag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nfc-emulate-tag.c b/examples/nfc-emulate-tag.c index 8713dd0..2019d07 100644 --- a/examples/nfc-emulate-tag.c +++ b/examples/nfc-emulate-tag.c @@ -61,7 +61,7 @@ static bool quiet_output = false; static bool init_mfc_auth = false; static void -intr_hdlr (void) +intr_hdlr (int sig) { printf ("\nQuitting...\n"); if (pnd != NULL) { @@ -177,7 +177,7 @@ main (int argc, char *argv[]) #ifdef WIN32 signal (SIGINT, (void (__cdecl *) (int)) intr_hdlr); #else - signal (SIGINT, (void (*)()) intr_hdlr); + signal (SIGINT, intr_hdlr); #endif nfc_init (NULL);