[Pcsclite-cvs-commit] PCSC/src/utils formaticc.c,1.10,1.11

rousseau@haydn.debian.org rousseau@haydn.debian.org


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,