[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       +4 -4      eda/geda/devel/geda/src/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/src/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 $ */
   
   /*******************************************************************************/
   /*                                                                             */
  @@ -119,7 +119,7 @@
   			continue;
   		if (szLine[0] == '[')
   			break;
  -		if (isascii(szLine[0]))
  +		if (isascii((int) szLine[0]))
   			iFound = 1;
   		break;
   	}
  @@ -127,10 +127,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];