[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: configfile.c
User: danmc
Date: 05/09/27 18:46:10
Modified: . configfile.c
Log:
remove various compiler warnings
Revision Changes Path
1.2 +6 -6 eda/geda/devel/geda/graphman/configfile.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: configfile.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/geda/graphman/configfile.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- configfile.c 12 Feb 2005 22:06:03 -0000 1.1
+++ configfile.c 27 Sep 2005 22:46:10 -0000 1.2
@@ -1,4 +1,4 @@
-/* $Id: configfile.c,v 1.1 2005/02/12 22:06:03 danmc Exp $ */
+/* $Id: configfile.c,v 1.2 2005/09/27 22:46:10 danmc Exp $ */
/*******************************************************************************/
/* */
@@ -127,7 +127,7 @@
continue;
if (szLine[0] == '[')
break;
- if (isascii(szLine[0]))
+ if (isascii((int) szLine[0]))
iFound = 1;
break;
}
@@ -135,10 +135,10 @@
if (iFound == 0)
return FAILURE;
- for (i = 0; i < strlen(szLine) && isalnum(szLine[i]); i ++)
+ for (i = 0; i < strlen(szLine) && isalnum((int) szLine[i]); i ++)
szName[i] = toupper(szLine[i]);
szName[i] = 0;
- for (; i < strlen(szLine) && (szLine[i] == '=' || isspace(szLine[i])); i ++)
+ for (; i < strlen(szLine) && (szLine[i] == '=' || isspace((int) szLine[i])); i ++)
;
for (; i < strlen(szLine); i ++)
szValue[j ++] = szLine[i];
@@ -187,7 +187,7 @@
switch (iState)
{
case PARSE_SPACES:
- if (!isspace(szLineBuf[i]))
+ if (!isspace((int) szLineBuf[i]))
{
if (szLineBuf[i] == '"')
{
@@ -217,7 +217,7 @@
break;
case PARSE_ALNUM:
- if (isspace(szLineBuf[i]) || IsSeparator(szLineBuf[i]))
+ if (isspace((int) szLineBuf[i]) || IsSeparator(szLineBuf[i]))
{
iState = PARSE_STOP;
}