• Philippe Teuwen's avatar
    Error conditions in utils & examples: fix leaks, unify style (see details) · bece73fa
    Philippe Teuwen authored
    * in main():
    ** errx()/err()/return -> exit()
    ** return values -> EXIT_SUCCESS & EXIT_FAILURE
    
    * out of main:
    ** err()/errx()/exit() -> return
    ** change retval from size_t to int to allow returning errors
    ** don't use EXIT_SUCCESS / EXIT_FAILURE as retvals
    
    * add nfc_close() & nfc_exit() to exit() on errors
    * add missing fclose() on errors
    * add missing test if (pnd == NULL)
    * unify style if (pnd == / != NULL)
    * remove goto's
    * few related fixes
    * remove if(pnd!=NULL) test on nfc_close() calls
    bece73fa
Name
Last commit
Last update
..
CMakeLists.txt Loading commit data...
Makefile.am Loading commit data...
mifare.c Loading commit data...
mifare.h Loading commit data...
nfc-emulate-forum-tag4.1 Loading commit data...
nfc-emulate-forum-tag4.c Loading commit data...
nfc-list.1 Loading commit data...
nfc-list.c Loading commit data...
nfc-mfclassic.1 Loading commit data...
nfc-mfclassic.c Loading commit data...
nfc-mfultralight.1 Loading commit data...
nfc-mfultralight.c Loading commit data...
nfc-read-forum-tag3.1 Loading commit data...
nfc-read-forum-tag3.c Loading commit data...
nfc-relay-picc.1 Loading commit data...
nfc-relay-picc.c Loading commit data...
nfc-scan-device.1 Loading commit data...
nfc-scan-device.c Loading commit data...
nfc-utils.c Loading commit data...
nfc-utils.h Loading commit data...