From: Matthew Mondor Date: Mon, 24 Apr 2006 21:24:27 +0000 (+0000) Subject: Fixed compiler warnings related to ctype macros called on characters, X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=b19d2e6464b7cc0fa2b28d5c74bb5a2dce1b7cb2;p=mmondor.git Fixed compiler warnings related to ctype macros called on characters, by adding a cast to int. --- diff --git a/mmsoftware/mmlib/mmreadcfg.c b/mmsoftware/mmlib/mmreadcfg.c index 89f3353..6e8713f 100644 --- a/mmsoftware/mmlib/mmreadcfg.c +++ b/mmsoftware/mmlib/mmreadcfg.c @@ -1,4 +1,4 @@ -/* $Id: mmreadcfg.c,v 1.19 2005/01/27 09:07:15 mmondor Exp $ */ +/* $Id: mmreadcfg.c,v 1.19.2.1 2006/04/24 21:24:27 mmondor Exp $ */ /* * Copyright (C) 1991-2004, Matthew Mondor @@ -61,7 +61,7 @@ MMCOPYRIGHT("@(#) Copyright (c) 1991-2004\n\ \tMatthew Mondor. All rights reserved.\n"); -MMRCSID("$Id: mmreadcfg.c,v 1.19 2005/01/27 09:07:15 mmondor Exp $"); +MMRCSID("$Id: mmreadcfg.c,v 1.19.2.1 2006/04/24 21:24:27 mmondor Exp $"); @@ -169,7 +169,7 @@ mmreadcfg(cres_t *res, carg_t *arg, const char *cfg) */ quoted = FALSE; for (; cptr < tptr && *cptr != '\n' && - (isspace(*cptr) || *cptr == '='); cptr++) ; + (isspace((int)*cptr) || *cptr == '='); cptr++) ; if (cptr == tptr) break; if (*cptr == '\n') { @@ -199,7 +199,7 @@ mmreadcfg(cres_t *res, carg_t *arg, const char *cfg) do { cont = FALSE; for (wptr = cptr; cptr < tptr && - ( (!quoted && !isspace(*cptr) && *cptr != '=') || + ( (!quoted && !isspace((int)*cptr) && *cptr != '=') || (quoted && (*cptr != '\n' && *cptr != '"')) ); cptr++) ; if (quoted && *cptr == '\n') { cptr++; @@ -209,7 +209,7 @@ mmreadcfg(cres_t *res, carg_t *arg, const char *cfg) } while (cont == TRUE); /* Note: isspace() includes '\n' */ if (!( (quoted && *cptr == '"') || - (!quoted && (isspace(*cptr) || *cptr == '=')) )) { + (!quoted && (isspace((int)*cptr) || *cptr == '=')) )) { /* This element ended abnormally, EOF was reached before it * was terminated. */