From da25554128ee8d9b777fa6cdf58e815331132aa3 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sun, 13 May 2012 12:38:18 +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-relay.c:107: warning: function declaration isn’t a prototype --- examples/nfc-relay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nfc-relay.c b/examples/nfc-relay.c index 1b8e9cb..68283f3 100644 --- a/examples/nfc-relay.c +++ b/examples/nfc-relay.c @@ -61,7 +61,7 @@ static nfc_device *pndTag; static bool quitting = false; static void -intr_hdlr (void) +intr_hdlr (int sig) { printf ("\nQuitting...\n"); quitting = true; @@ -104,7 +104,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_connstring connstrings[MAX_DEVICE_COUNT];