mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-04-05 09:58:24 +00:00
parent
26624ab90f
commit
e3c8d26760
4 changed files with 5 additions and 6 deletions
|
@ -397,7 +397,7 @@ NET_StringToSockaddr(const char *s, struct sockaddr_storage *sadr)
|
|||
if (!*space)
|
||||
{
|
||||
Com_Printf("NET_StringToSockaddr: invalid IPv6 address %s\n", s);
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
*space++ = '\0';
|
||||
|
@ -417,7 +417,7 @@ NET_StringToSockaddr(const char *s, struct sockaddr_storage *sadr)
|
|||
/* Error */
|
||||
Com_Printf("NET_StringToSockaddr: string %s:\n%s\n", s,
|
||||
gai_strerror(err));
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (resultp->ai_family)
|
||||
|
@ -432,7 +432,7 @@ NET_StringToSockaddr(const char *s, struct sockaddr_storage *sadr)
|
|||
default:
|
||||
Com_Printf("NET_StringToSockaddr: string %s:\nprotocol family %d not supported\n",
|
||||
s, resultp->ai_family);
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
freeaddrinfo(resultp);
|
||||
|
|
|
@ -79,7 +79,7 @@ Hunk_Begin(int maxsize)
|
|||
prot |= PROT_MAX(prot);
|
||||
#endif
|
||||
|
||||
membase = mmap(0, maxhunksize, prot,
|
||||
membase = (byte *)mmap(0, maxhunksize, prot,
|
||||
flags, -1, 0);
|
||||
|
||||
if ((membase == NULL) || (membase == (byte *)-1))
|
||||
|
|
|
@ -42,7 +42,7 @@ surfcache_t *sc_base;
|
|||
/*
|
||||
* Color light apply is not required
|
||||
*/
|
||||
static qboolean
|
||||
static int
|
||||
R_GreyscaledLight(const light3_t light)
|
||||
{
|
||||
light3_t light_masked;
|
||||
|
|
|
@ -54,7 +54,6 @@ int alias_count; /* for detecting runaway loops */
|
|||
cmdalias_t *cmd_alias;
|
||||
int cmd_wait;
|
||||
static int cmd_argc;
|
||||
static int cmd_argc;
|
||||
static char *cmd_argv[MAX_STRING_TOKENS];
|
||||
static char *cmd_null_string = "";
|
||||
static char cmd_args[MAX_STRING_CHARS];
|
||||
|
|
Loading…
Reference in a new issue