mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-03-13 03:33:28 +00:00
Cast isspace() and tolower() arguments to int to avoid warnings.
This commit is contained in:
parent
d4845db15c
commit
a3a9384eec
2 changed files with 3 additions and 3 deletions
|
@ -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))) {
|
||||
|
|
|
@ -693,7 +693,7 @@ void SV_BeginDownload_f(void)
|
|||
char *p;
|
||||
|
||||
for (p = name; *p; p++)
|
||||
*p = (char)tolower(*p);
|
||||
*p = tolower((int)*p);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue