Suppress compilation warnings.

Code clean up: use EXIT_SUCCESS and EXIT_FAILURE.
This commit is contained in:
Romuald Conty 2010-02-11 16:24:28 +00:00
parent 984cc457cb
commit c7423335df

View File

@ -55,10 +55,9 @@ int main(int argc, const char* argv[])
pnd = nfc_connect(&ndd);
*/
if (pnd == NULL)
{
ERR("Unable to connect to NFC device.");
return 1;
if (pnd == NULL) {
ERR("%s", "Unable to connect to NFC device.");
return EXIT_FAILURE;
}
nfc_initiator_init(pnd);
@ -179,5 +178,5 @@ Innovision R&T Jewel 0C 00
nfc_configure(pnd,NDO_ACTIVATE_FIELD,false);
nfc_disconnect(pnd);
return 0;
return EXIT_SUCCESS;
}