mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 00:24:12 +00:00
fix some warning in solaris
This commit is contained in:
parent
c0f363e05c
commit
8ae3ef9482
1 changed files with 3 additions and 3 deletions
|
@ -168,12 +168,12 @@ GIB_ListFetch_f (void)
|
||||||
|
|
||||||
if (!(var = GIB_Var_FindLocal (GIB_Argv (1))))
|
if (!(var = GIB_Var_FindLocal (GIB_Argv (1))))
|
||||||
return GIB_E_NOVAR;
|
return GIB_E_NOVAR;
|
||||||
for (i = 0; isspace (var->value[i]); i++);
|
for (i = 0; isspace ((byte)var->value[i]); i++);
|
||||||
for (n = 1; n < atoi (GIB_Argv (2)); n++) {
|
for (n = 1; n < atoi (GIB_Argv (2)); n++) {
|
||||||
if ((m = GIB_Get_Arg (var->value + i)) < 1)
|
if ((m = GIB_Get_Arg (var->value + i)) < 1)
|
||||||
return GIB_E_ULIMIT;
|
return GIB_E_ULIMIT;
|
||||||
i += m;
|
i += m;
|
||||||
for (; isspace (var->value[i]); i++);
|
for (; isspace ((byte)var->value[i]); i++);
|
||||||
}
|
}
|
||||||
if ((m = GIB_Get_Arg (var->value + i)) < 1)
|
if ((m = GIB_Get_Arg (var->value + i)) < 1)
|
||||||
return GIB_E_ULIMIT;
|
return GIB_E_ULIMIT;
|
||||||
|
@ -205,7 +205,7 @@ GIB_ExpandVars (const char *source, char *buffer, int buffersize)
|
||||||
for (i = 0, n = 0; i <= strlen (source); i++) {
|
for (i = 0, n = 0; i <= strlen (source); i++) {
|
||||||
if (source[i] == '$') {
|
if (source[i] == '$') {
|
||||||
m = 0;
|
m = 0;
|
||||||
while (isalnum (source[++i]))
|
while (isalnum ((byte)source[++i]))
|
||||||
varname[m++] = source[i];
|
varname[m++] = source[i];
|
||||||
|
|
||||||
varname[m++] = 0;
|
varname[m++] = 0;
|
||||||
|
|
Loading…
Reference in a new issue