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. 05 Mar, 2013 2 commits
    • Philippe Teuwen's avatar
      Fix cppcheck style: scope of variable can be reduced · c37d1742
      Philippe Teuwen authored
      Fix the following cppcheck warnings:
      [libnfc/chips/pn53x.c:617]: (style) The scope of the variable 'res' can be reduced
      c37d1742
    • 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
  4. 02 Mar, 2013 3 commits
    • Philippe Teuwen's avatar
      Fix compilation warnings: values never read · 2334adc8
      Philippe Teuwen authored
      Fixes:
      pn53x.c:523:11: warning: Value stored to 'pbtRawData' is never read
                pbtRawData += szRawData - 8;
                ^             ~~~~~~~~~~~~~
      pn53x.c:544:7: warning: Value stored to 'pbtRawData' is never read
            pbtRawData += 2;
            ^             ~
      pn53x.c:532:7: warning: Value stored to 'pbtRawData' is never read
            pbtRawData += 8;
            ^             ~
      pn53x.c:3085:3: warning: Value stored to 'buflen' is never read
        buflen -= res;
        ^         ~~~
      pn53x.c:3080:3: warning: Value stored to 'buf' is never read
        buf += res;
        ^      ~~~
      target-subr.c:466:7: warning: Value stored to 'dst' is never read
            dst += sprintf(dst, "* Unknown card, sorry\n");
            ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      target-subr.c:480:3: warning: Value stored to 'dst' is never read
        dst += sprint_hex(dst, nfi.abtSysCode, 2);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      target-subr.c:490:3: warning: Value stored to 'dst' is never read
        dst += sprint_hex(dst, nji.btId, 4);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      target-subr.c:546:7: warning: Value stored to 'dst' is never read
            dst += sprintf(dst, "\n");
            ^      ~~~~~~~~~~~~~~~~~~
      target-subr.c:571:5: warning: Value stored to 'dst' is never read
          dst += sprint_hex(dst, nii.abtAtr, nii.szAtrLen);
          ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      target-subr.c:580:3: warning: Value stored to 'dst' is never read
        dst += sprint_hex(dst, nsi.abtUID, 8);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      target-subr.c:593:3: warning: Value stored to 'dst' is never read
        dst += sprintf(dst, "           Fab Code: %02X\n", nci.btFabCode);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      target-subr.c:608:5: warning: Value stored to 'dst' is never read
          dst += sprint_hex(dst, ndi.abtGB, ndi.szGB);
          ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      2334adc8
    • Ludovic Rousseau's avatar
      Initialize variables · aee56b92
      Ludovic Rousseau authored
      Fix compiler warnings and potential bug
      
      pn53x.c:1526:19: warning: The right operand of '<' is a garbage value
          for (i = 0; i < sz; i++) {
                        ^ ~~
      pn53x.c:1621:19: warning: The right operand of '<' is a garbage value
          for (i = 0; i < sz; i++) {
                        ^ ~~
      aee56b92
    • Philippe Teuwen's avatar
  5. 15 Feb, 2013 1 commit
  6. 31 Jan, 2013 1 commit
  7. 21 Jan, 2013 1 commit
  8. 18 Jan, 2013 1 commit
  9. 09 Dec, 2012 1 commit
  10. 26 Nov, 2012 1 commit
    • Romuald Conty's avatar
      Improves log feature: · 9b3947b8
      Romuald Conty authored
        * Add --disable-log
        * Add a log level filter, configurable using conf file (ie. /etc/nfc/libnfc.conf) or environment var LIBNFC_LOG_LEVEL
      9b3947b8
  11. 12 Nov, 2012 1 commit
  12. 01 Nov, 2012 1 commit
  13. 30 Oct, 2012 1 commit
  14. 21 Oct, 2012 1 commit
  15. 03 Oct, 2012 1 commit
  16. 17 Sep, 2012 1 commit
  17. 12 Jun, 2012 2 commits
  18. 04 Jun, 2012 2 commits
  19. 03 Jun, 2012 4 commits
  20. 30 May, 2012 2 commits
  21. 29 May, 2012 6 commits
  22. 27 May, 2012 3 commits
  23. 18 May, 2012 1 commit