mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
First few files of signedness cleanup for GCC 4.0.
This commit is contained in:
parent
71678e1859
commit
b59f366684
3 changed files with 5 additions and 7 deletions
|
@ -100,23 +100,21 @@ Info_SetValueForStarKey (info_t *info, const char *key, const char *value,
|
|||
{
|
||||
info_key_t *k;
|
||||
int cursize;
|
||||
char *str;
|
||||
byte *s, *d;
|
||||
char *str, *d, *s;
|
||||
|
||||
if (strstr (key, "\\") || strstr (value, "\\")) {
|
||||
Sys_Printf ("Can't use keys or values with a \\\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strstr (key, "\"") || strstr (value, "\"")) {
|
||||
Sys_Printf ("Can't use keys or values with a \"\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strlen (key) > 63 || strlen (value) > 63) {
|
||||
Sys_Printf ("Keys and values must be < 64 characters.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
k = Hash_Find (info->tab, key);
|
||||
cursize = info->cursize;
|
||||
if (k) {
|
||||
|
|
|
@ -261,7 +261,7 @@ MSG_ReadString (qmsg_t *msg)
|
|||
return "";
|
||||
}
|
||||
|
||||
string = &msg->message->data[msg->readcount];
|
||||
string = (char *) &msg->message->data[msg->readcount];
|
||||
|
||||
maxlen = msg->message->cursize - msg->readcount;
|
||||
len = strnlen (string, maxlen);
|
||||
|
|
|
@ -59,7 +59,7 @@ init_quotables (void)
|
|||
{
|
||||
const char *unquotables = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
"abcdefghijklmnopqrstuvwxyz!#$%&*+-./:?@|~_^";
|
||||
const byte *c;
|
||||
const char *c;
|
||||
memset (quotable_bitmap, ~0, sizeof (quotable_bitmap));
|
||||
for (c = unquotables; *c; c++)
|
||||
quotable_bitmap[*c / 8] &= ~(1 << (*c % 8));
|
||||
|
|
Loading…
Reference in a new issue