Remove an explicit cast and fix a compiler warning

nfc-emulate-tag.c:180: warning: function declaration isn’t a prototype
This commit is contained in:
Ludovic Rousseau 2012-05-13 12:46:33 +00:00
parent a7325ffded
commit 96b1643522

View file

@ -61,7 +61,7 @@ static bool quiet_output = false;
static bool init_mfc_auth = false; static bool init_mfc_auth = false;
static void static void
intr_hdlr (void) intr_hdlr (int sig)
{ {
printf ("\nQuitting...\n"); printf ("\nQuitting...\n");
if (pnd != NULL) { if (pnd != NULL) {
@ -177,7 +177,7 @@ main (int argc, char *argv[])
#ifdef WIN32 #ifdef WIN32
signal (SIGINT, (void (__cdecl *) (int)) intr_hdlr); signal (SIGINT, (void (__cdecl *) (int)) intr_hdlr);
#else #else
signal (SIGINT, (void (*)()) intr_hdlr); signal (SIGINT, intr_hdlr);
#endif #endif
nfc_init (NULL); nfc_init (NULL);