1. 13 Jun, 2013 1 commit
  2. 09 Apr, 2013 1 commit
  3. 05 Apr, 2013 1 commit
  4. 12 Mar, 2013 6 commits
  5. 10 Mar, 2013 1 commit
  6. 07 Mar, 2013 2 commits
    • Alex Lian's avatar
      Windows: Clean up all compiler warnings and link warnings · 7b917f9a
      Alex Lian authored
      - Fixed the suppression of the auto-fixup for linking against MS built libs
      - Fixed all the formatting warnings by shifting to inttypes.h specifiers
      - shifted to %lu for DWORD printf
      7b917f9a
    • Alex Lian's avatar
      Convert by value passing of nfc_target to pointer for str_nfc_target and... · c72846e3
      Alex Lian authored
      Convert by value passing of nfc_target to pointer for str_nfc_target and nfc_initiator_target_is_present
      
      This becomes more consistent with all other pass by pointer of most structures.
      Additionally, this should lessen stack memory usage, as building strings with str_nfc_target would push the target (283 bytes) plus then a copy of the info objects (up to 275) onto the stack as it dives into the sprintf functions.
      
      Lastly, this makes my attempt at a .NET wrapper easier, as I can make passing by pointer work, but passing by value seems to bomb on the interop right now.
      c72846e3
  7. 06 Mar, 2013 2 commits
  8. 05 Mar, 2013 7 commits
    • Philippe Teuwen's avatar
      Fix cppcheck warning "scanf without field width limits can crash with huge input data" · d577fda4
      Philippe Teuwen authored
      Fix following warnings:
      [examples/pn53x-tamashell.c:162]: (warning) scanf without field width limits can crash with huge input data
      [libnfc/drivers/acr122_pcsc.c:261]: (warning) scanf without field width limits can crash with huge input data
      [libnfc/drivers/acr122s.c:441]: (warning) scanf without field width limits can crash with huge input data
      [libnfc/drivers/arygon.c:210]: (warning) scanf without field width limits can crash with huge input data
      [libnfc/drivers/arygon.c:522]: (warning) scanf without field width limits can crash with huge input data
      [libnfc/drivers/pn532_uart.c:187]: (warning) scanf without field width limits can crash with huge input data
      [utils/nfc-relay-picc.c:176]: (warning) scanf without field width limits can crash with huge input data
      d577fda4
    • Philippe Teuwen's avatar
      Fix cppcheck style: scope of variable can be reduced · 47693921
      Philippe Teuwen authored
      Fix the following cppcheck warnings:
      [libnfc/drivers/pn532_uart.c:492]: (style) The scope of the variable 'res' can be reduced
      [libnfc/chips/pn53x.c:320]: (style) The scope of the variable 'res' can be reduced
      [libnfc/chips/pn53x.c:616]: (style) The scope of the variable 'res' can be reduced
      [libnfc/nfc.c:356]: (style) The scope of the variable '_device_found' can be reduced
      [utils/nfc-mfclassic.c:178]: (style) The scope of the variable 'key_index' can be reduced
      47693921
    • Philippe Teuwen's avatar
      nfc-read-forum-tag3 & nfc-relay-picc: remove unused variable · 3f5a3fd5
      Philippe Teuwen authored
      Fix cppcheck warnings
      [utils/nfc-read-forum-tag3.c:281]: (style) Variable 'len' is assigned a value that is never used
      [utils/nfc-relay-picc.c:392]: (style) Variable 'res' is assigned a value that is never used
      3f5a3fd5
    • Philippe Teuwen's avatar
    • Philippe Teuwen's avatar
      examples/utils: add nfc_exit() to signal traps · e55efd6d
      Philippe Teuwen authored
      and one missing nfc_abort_command()
      e55efd6d
    • Philippe Teuwen's avatar
    • 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
  9. 04 Mar, 2013 1 commit
  10. 02 Mar, 2013 3 commits
  11. 01 Mar, 2013 1 commit
  12. 21 Feb, 2013 1 commit
  13. 18 Feb, 2013 1 commit
  14. 16 Feb, 2013 1 commit
  15. 14 Feb, 2013 1 commit
  16. 01 Feb, 2013 3 commits
  17. 31 Jan, 2013 7 commits