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);