mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
fixes for __attribute__((format)) (I'll commit that /after/ release) and freelook
This commit is contained in:
parent
aec65c68a2
commit
ea1386f190
8 changed files with 11 additions and 6 deletions
|
@ -37,6 +37,7 @@
|
|||
#include "console.h"
|
||||
#include "qargs.h"
|
||||
#include "cmd.h"
|
||||
#include "commdef.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -312,9 +312,9 @@ int UDP_OpenSocket (int port)
|
|||
int i;
|
||||
|
||||
if ((newsocket = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1)
|
||||
Sys_Error ("UDP_OpenSocket: socket:", strerror(errno));
|
||||
Sys_Error ("UDP_OpenSocket: socket:%s", strerror(errno));
|
||||
if (ioctl (newsocket, FIONBIO, &_true) == -1)
|
||||
Sys_Error ("UDP_OpenSocket: ioctl FIONBIO:", strerror(errno));
|
||||
Sys_Error ("UDP_OpenSocket: ioctl FIONBIO:%s", strerror(errno));
|
||||
address.sin_family = AF_INET;
|
||||
//ZOID -- check for interface binding option
|
||||
if ((i = COM_CheckParm("-ip")) != 0 && i < com_argc) {
|
||||
|
@ -346,7 +346,7 @@ void NET_GetLocalAddress (void)
|
|||
|
||||
namelen = sizeof(address);
|
||||
if (getsockname (net_socket, (struct sockaddr *)&address, &namelen) == -1)
|
||||
Sys_Error ("NET_Init: getsockname:", strerror(errno));
|
||||
Sys_Error ("NET_Init: getsockname: %s", strerror(errno));
|
||||
net_local_adr.port = address.sin_port;
|
||||
|
||||
Con_Printf("IP address %s\n", NET_AdrToString (net_local_adr) );
|
||||
|
|
|
@ -169,7 +169,7 @@ void S_SoundInfo_f(void)
|
|||
Con_Printf("%5d samplebits\n", shm->samplebits);
|
||||
Con_Printf("%5d submission_chunk\n", shm->submission_chunk);
|
||||
Con_Printf("%5d speed\n", shm->speed);
|
||||
Con_Printf("0x%x dma buffer\n", shm->buffer);
|
||||
Con_Printf("0x%x dma buffer\n", (unsigned)shm->buffer);
|
||||
Con_Printf("%5d total_channels\n", total_channels);
|
||||
}
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ int main(int argc, char *argv[])
|
|||
if (j)
|
||||
parms.memsize = (int) (atof(com_argv[j+1]) * 1024 * 1024);
|
||||
if ((parms.membase = malloc (parms.memsize)) == NULL)
|
||||
Sys_Error("Can't allocate %ld\n", parms.memsize);
|
||||
Sys_Error("Can't allocate %d\n", parms.memsize);
|
||||
|
||||
parms.basedir = BASEDIR;
|
||||
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
#include "qargs.h"
|
||||
#include "compat.h"
|
||||
#include "d_local.h"
|
||||
#inlcude "input.h"
|
||||
|
||||
extern viddef_t vid; // global video state
|
||||
unsigned short d_8to16table[256];
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
#include "qendian.h"
|
||||
#include "qargs.h"
|
||||
#include "compat.h"
|
||||
#include "input.h"
|
||||
|
||||
#include <GL/glx.h>
|
||||
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
#include "qendian.h"
|
||||
#include "console.h"
|
||||
#include "qargs.h"
|
||||
#include "input.h"
|
||||
|
||||
#define stringify(m) { #m, m }
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ typedef unsigned short PIXEL;
|
|||
#include "qendian.h"
|
||||
#include "console.h"
|
||||
#include "qargs.h"
|
||||
#include "input.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -504,7 +505,7 @@ void VID_Init (unsigned char *palette)
|
|||
else if (num_visuals == 0)
|
||||
{
|
||||
if (template_mask == VisualIDMask)
|
||||
Sys_Error("VID: Bad visual id %d\n", template.visualid);
|
||||
Sys_Error("VID: Bad visual id %ld\n", template.visualid);
|
||||
else
|
||||
Sys_Error("VID: No visuals at depth %d\n", template.depth);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue