[Pcsclite-cvs-commit] PCSC/src/utils formaticc.c,1.10,1.11
rousseau@haydn.debian.org
rousseau@haydn.debian.org
- Previous message: [Pcsclite-cvs-commit] Drivers/ccid configure.in,1.20,1.21
- Next message: [Pcsclite-cvs-commit] PCSC/src debuglog.c,1.22,1.23 debuglog.h,1.11,1.12 dyn_macosx.c,1.6,1.7 eventhandler.c,1.15,1.16 hotplug_libusb.c,1.24,1.25 hotplug_linux.c,1.25,1.26 hotplug_macosx.c,1.19,1.20 muscletest.c,1.11,1.12 powermgt_macosx.c,1.13,1.14 testpcsc.c,1.13,1.14 thread_generic.h,1.10,1.11 thread_unix.c,1.10,1.11 winscard_msg.c,1.21,1.22 winscard_svc.c,1.23,1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/pcsclite/PCSC/src/utils
In directory haydn:/tmp/cvs-serv10545/src/utils
Modified Files:
formaticc.c
Log Message:
recompile using -pedantic and correct lots of cast "problems"
Index: formaticc.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/utils/formaticc.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- formaticc.c 10 May 2004 13:14:30 -0000 1.10
+++ formaticc.c 25 May 2004 12:44:30 -0000 1.11
@@ -155,9 +155,10 @@
break;
dwSendLength = x;
- line_ptr = strchr(line_ptr, ' ') +1;
- if (line_ptr == (char *)(NULL+1))
+ line_ptr = strchr(line_ptr, ' ');
+ if (line_ptr == NULL)
break;
+ line_ptr++;
for (i = 0; i < dwSendLength; i++)
{
@@ -170,10 +171,12 @@
}
s[i] = x;
- line_ptr = strchr(line_ptr, ' ') +1;
+ line_ptr = strchr(line_ptr, ' ');
- if (line_ptr == (char *)(NULL+1))
+ if (line_ptr == NULL)
break;
+
+ line_ptr++;
}
printf("Processing Command %03d of length %03lX: %s", cnum,
- Previous message: [Pcsclite-cvs-commit] Drivers/ccid configure.in,1.20,1.21
- Next message: [Pcsclite-cvs-commit] PCSC/src debuglog.c,1.22,1.23 debuglog.h,1.11,1.12 dyn_macosx.c,1.6,1.7 eventhandler.c,1.15,1.16 hotplug_libusb.c,1.24,1.25 hotplug_linux.c,1.25,1.26 hotplug_macosx.c,1.19,1.20 muscletest.c,1.11,1.12 powermgt_macosx.c,1.13,1.14 testpcsc.c,1.13,1.14 thread_generic.h,1.10,1.11 thread_unix.c,1.10,1.11 winscard_msg.c,1.21,1.22 winscard_svc.c,1.23,1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]