summaryrefslogtreecommitdiff
path: root/src/util/ParseFile.c
diff options
context:
space:
mode:
authorswhite <swhite@17b73243-c579-4c4c-a9d2-2d5706c11dac>2006-03-02 14:46:41 +0000
committerswhite <swhite@17b73243-c579-4c4c-a9d2-2d5706c11dac>2006-03-02 14:46:41 +0000
commit9b44d6fd226fc051ac5d46ecef0376122205c87d (patch)
treef7d720fc4e9a3dd9b86e598fd910fab419171a47 /src/util/ParseFile.c
parent37dd2a4e68e78e9a753174c613da97a0d53535e6 (diff)
As discussed in today's Cactus call, applying patches from 14 Feb
Patches mailing list. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4263 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/ParseFile.c')
-rw-r--r--src/util/ParseFile.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/util/ParseFile.c b/src/util/ParseFile.c
index 0dc9863d..59d6abcc 100644
--- a/src/util/ParseFile.c
+++ b/src/util/ParseFile.c
@@ -186,7 +186,7 @@ int ParseFile(FILE *ifp,
/* Token character */
if (intoken && c != '=')
{
- tokens[intoken++] = c;
+ tokens[intoken++] = (char)c;
CheckBuf(intoken,lineno);
}
@@ -195,7 +195,7 @@ int ParseFile(FILE *ifp,
if (c != ' ' && c != '\t' && c != '\n' && c != '\r' && !inval && !intoken)
{
intoken = 0;
- tokens[intoken++] = c;
+ tokens[intoken++] = (char)c;
}
/* End of a token signified by an = */
@@ -257,7 +257,7 @@ int ParseFile(FILE *ifp,
/* Make an important decision NOT to include
* line feeds in the string parameters
*/
- if (c != '\n') value[p++] = c;
+ if (c != '\n') value[p++] = (char)c;
if (c == '\n')
{
printf ("Warning: Quoted string contains newline for token %s\n",
@@ -314,7 +314,7 @@ int ParseFile(FILE *ifp,
{
int p = 0;
- value[p++] = c;
+ value[p++] = (char)c;
if (ntokens == 1)
{
/* Simple case. We have an int
@@ -326,7 +326,7 @@ int ParseFile(FILE *ifp,
#endif
while (!(c==' ' || c=='\t' || c == '\n' || c == '\r' || c == EOF))
{
- value[p++] = c;
+ value[p++] = (char)c;
CheckBuf(p,lineno);
c = fgetc(ifp);
#ifdef DEBUG
@@ -354,7 +354,7 @@ int ParseFile(FILE *ifp,
int pp=0, i;
int pt, pv;
- value[pp++] = c;
+ value[pp++] = (char)c;
/* OK, since we only have numbers in the
old input stream, we can go along getting
ntokens-1 commas, stripping spaces, and
@@ -368,7 +368,7 @@ int ParseFile(FILE *ifp,
{
if (!(c == ' ' || c == '\t' || c == '\n' || c == '\r'))
{
- value[pp++] = c;
+ value[pp++] = (char)c;
CheckBuf(pp,lineno);
}
if (c == ',') ncommas ++;
@@ -396,7 +396,7 @@ int ParseFile(FILE *ifp,
}
/* And tack the rest on */
- value[pp++] = c;
+ value[pp++] = (char)c;
CheckBuf(p,lineno);
c = fgetc(ifp);
@@ -405,7 +405,7 @@ int ParseFile(FILE *ifp,
#endif
while (c != ' ' && c != '\t' && c != '\n' && c != '\r' && c != EOF)
{
- value[pp++] = c;
+ value[pp++] = (char)c;
CheckBuf(pp,lineno);
c = fgetc(ifp);
#ifdef DEBUG