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:
parent
a7325ffded
commit
96b1643522
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue