y2013t / mfcuk

Automatically exported from code.google.com/p/mfcuk
GNU General Public License v2.0
0 stars 0 forks source link

update nfc-utils.c for latest libnfc (r1116) #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
nfc-utils.c should be updated to work with the current libnfc svn.
This change was introduced in libnfc r1116.

===================================================================
--- nfc-utils.c (revision 49)
+++ nfc-utils.c (working copy)
@@ -210,8 +210,7 @@
         strcpy(pndd->pcDriver, strtok(buffer, ":"));

         // Port.
-        pndd->pcPort = (char *)malloc(256);
-        strcpy(pndd->pcPort, strtok(NULL, ":"));
+        strcpy(pndd->acPort, strtok(NULL, ":"));

         // Speed.
         sscanf(strtok(NULL, ":"), "%u", &pndd->uiSpeed);

Original issue reported on code.google.com by maxx...@gmail.com on 22 Jul 2011 at 8:16

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r50.

Original comment by romu...@libnfc.org on 5 Sep 2011 at 3:24

GoogleCodeExporter commented 9 years ago
after this change i'm not able to compile mfcuk

nfc-utils.c:213:20: error: ‘nfc_device_desc_t’ has no member named 
‘acPort’

Original comment by pelas...@gmail.com on 23 Sep 2011 at 6:57