1. 10 Mar, 2013 1 commit
  2. 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
  3. 06 Mar, 2013 1 commit
  4. 05 Mar, 2013 4 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
      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
      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
  5. 01 Feb, 2013 2 commits
  6. 21 Jan, 2013 2 commits
  7. 04 Dec, 2012 1 commit
  8. 10 Nov, 2012 1 commit
  9. 21 Oct, 2012 1 commit
  10. 17 Sep, 2012 1 commit
  11. 29 May, 2012 6 commits
  12. 27 May, 2012 1 commit
  13. 14 May, 2012 1 commit
  14. 13 May, 2012 1 commit
    • Ludovic Rousseau's avatar
      Fix compiler warnings: · b5e688e7
      Ludovic Rousseau authored
      nfc-relay-picc.c:76: warning: no previous prototype for ‘intr_hdlr’
      nfc-relay-picc.c:85: warning: no previous prototype for ‘print_usage’
      nfc-relay-picc.c:96: warning: no previous prototype for ‘print_hex_fd4’
      nfc-relay-picc.c:118: warning: no previous prototype for ‘scan_hex_fd3’
      nfc-relay-picc.c: In function ‘main’:
      nfc-relay-picc.c:190: warning: function declaration isn’t a prototype
      b5e688e7
  15. 20 Jan, 2012 1 commit
  16. 18 Jan, 2012 3 commits
  17. 17 Jan, 2012 2 commits
  18. 10 Jan, 2012 1 commit
  19. 09 Jan, 2012 1 commit
  20. 05 Jan, 2012 4 commits
  21. 22 Dec, 2011 2 commits
  22. 21 Dec, 2011 1 commit