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