1. 17 Jul, 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 1 commit
    • 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 1 commit
  8. 05 Mar, 2013 3 commits
    • 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
    • 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. 02 Mar, 2013 2 commits
  10. 01 Feb, 2013 1 commit
  11. 04 Dec, 2012 1 commit
  12. 24 Nov, 2012 1 commit
  13. 21 Oct, 2012 1 commit
  14. 17 Sep, 2012 1 commit
  15. 03 Jun, 2012 1 commit
  16. 29 May, 2012 4 commits
  17. 27 May, 2012 1 commit
  18. 01 Mar, 2012 1 commit
  19. 15 Feb, 2012 1 commit
  20. 18 Jan, 2012 3 commits
  21. 17 Jan, 2012 2 commits
  22. 15 Jan, 2012 1 commit
  23. 05 Jan, 2012 2 commits
  24. 04 Jan, 2012 2 commits