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:
parent
43569e22e4
commit
da25554128
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Reference in a new issue