Cast isspace() and tolower() arguments to int to avoid warnings.

This commit is contained in:
Marcus Sundberg 2000-05-14 18:10:56 +00:00
parent d4845db15c
commit a3a9384eec
2 changed files with 3 additions and 3 deletions

View file

@ -864,9 +864,9 @@ void CL_ConnectionlessPacket (void)
s = MSG_ReadString ();
while (*s && isspace(*s))
while (*s && isspace((int)*s))
s++;
while (*s && isspace(s[strlen(s) - 1]))
while (*s && isspace((int)(s[strlen(s) - 1])))
s[strlen(s) - 1] = 0;
if (!allowremotecmd && (!*localid.string || strcmp(localid.string, s))) {

View file

@ -693,7 +693,7 @@ void SV_BeginDownload_f(void)
char *p;
for (p = name; *p; p++)
*p = (char)tolower(*p);
*p = tolower((int)*p);
}