mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Revert broken gcc4 cleanups.
This commit is contained in:
parent
dff55040bc
commit
62a0919472
3 changed files with 11 additions and 10 deletions
|
@ -100,7 +100,8 @@ Info_SetValueForStarKey (info_t *info, const char *key, const char *value,
|
|||
{
|
||||
info_key_t *k;
|
||||
int cursize;
|
||||
char *str, *d, *s;
|
||||
char *str;
|
||||
byte *d, *s;
|
||||
|
||||
if (strstr (key, "\\") || strstr (value, "\\")) {
|
||||
Sys_Printf ("Can't use keys or values with a \\\n");
|
||||
|
|
|
@ -261,7 +261,7 @@ MSG_ReadString (qmsg_t *msg)
|
|||
return "";
|
||||
}
|
||||
|
||||
string = (char *) &msg->message->data[msg->readcount];
|
||||
string = &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 char *c;
|
||||
const byte *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