From 76a1744d37bf92db4e46c4d61a2af38cf1a19f28 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Sat, 5 Mar 2011 01:45:49 +0000 Subject: [PATCH] Lint returns. --- examples/nfc-poll.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/nfc-poll.c b/examples/nfc-poll.c index c90e8ee..2edacb3 100644 --- a/examples/nfc-poll.c +++ b/examples/nfc-poll.c @@ -86,7 +86,7 @@ main (int argc, const char *argv[]) if (szFound == 0) { if (!(pnddDevices = malloc (MAX_DEVICE_COUNT * sizeof (*pnddDevices)))) { fprintf (stderr, "malloc() failed\n"); - return EXIT_FAILURE; + exit (EXIT_FAILURE); } } @@ -117,7 +117,7 @@ main (int argc, const char *argv[]) if (pnd == NULL) { ERR ("%s", "Unable to connect to NFC device."); - return 1; + exit (EXIT_FAILURE); } nfc_initiator_init (pnd); @@ -158,5 +158,5 @@ main (int argc, const char *argv[]) } free (pnddDevices); - return 0; + exit (EXIT_SUCCESS); }