Compiler: Fix linux compilation.

This commit is contained in:
Arkshine 2014-08-16 01:25:52 +02:00
parent 16e5f54507
commit 238e3707c8

View File

@ -921,7 +921,7 @@ static int command(void)
if (skiplevel==iflevel) if (skiplevel==iflevel)
preproc_expr(&val,NULL); /* get, but ignore the expression */ preproc_expr(&val,NULL); /* get, but ignore the expression */
else else
lptr=strchr(lptr,'\0'); lptr=(unsigned char*)strchr((char*)lptr,'\0');
} /* if */ } /* if */
} else { } else {
/* previous conditions were all FALSE */ /* previous conditions were all FALSE */
@ -932,7 +932,7 @@ static int command(void)
if (skiplevel==iflevel) { if (skiplevel==iflevel) {
preproc_expr(&val,NULL); /* get value (or 0 on error) */ preproc_expr(&val,NULL); /* get value (or 0 on error) */
} else { } else {
lptr=strchr(lptr,'\0'); lptr=(unsigned char*)strchr((char*)lptr,'\0');
val=0; val=0;
} /* if */ } /* if */
ifstack[iflevel-1]=(char)(val ? PARSEMODE : SKIPMODE); ifstack[iflevel-1]=(char)(val ? PARSEMODE : SKIPMODE);
@ -1379,7 +1379,7 @@ static int command(void)
lptr++; lptr++;
if (!SKIPPING) { if (!SKIPPING) {
str=strtok((char*)lptr, "\n"); str=strtok((char*)lptr, "\n");
error(234, str != NULL ? str : lptr); /* user warning, and remove unnecessary newline */ error(234, str != NULL ? str : (char*)lptr); /* user warning, and remove unnecessary newline */
} }
break; break;
default: default: