Remove an explicit cast and fix a compiler warning

nfc-relay.c:107: warning: function declaration isn’t a prototype
This commit is contained in:
Ludovic Rousseau 2012-05-13 12:38:18 +00:00
parent 43569e22e4
commit da25554128

View file

@ -61,7 +61,7 @@ static nfc_device *pndTag;
static bool quitting = false; static bool quitting = false;
static void static void
intr_hdlr (void) intr_hdlr (int sig)
{ {
printf ("\nQuitting...\n"); printf ("\nQuitting...\n");
quitting = true; quitting = true;
@ -104,7 +104,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_connstring connstrings[MAX_DEVICE_COUNT]; nfc_connstring connstrings[MAX_DEVICE_COUNT];