Revert broken gcc4 cleanups.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2005-04-11 20:59:03 +00:00
parent dff55040bc
commit 62a0919472
3 changed files with 11 additions and 10 deletions

View file

@ -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");

View file

@ -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);

View file

@ -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));