From f0fc390a026dfff392ba465b76f60f3f0e5a70e2 Mon Sep 17 00:00:00 2001 From: ludwig Date: Sat, 30 Dec 2006 12:32:54 +0000 Subject: - tag more functions with gnu format attribute - fix format string bugs. still some left git-svn-id: svn://svn.icculus.org/quake3/trunk@1023 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/server/sv_client.c | 2 +- code/server/sv_game.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'code/server') diff --git a/code/server/sv_client.c b/code/server/sv_client.c index 6f9af5c..5685457 100644 --- a/code/server/sv_client.c +++ b/code/server/sv_client.c @@ -1433,7 +1433,7 @@ static void SV_UserMove( client_t *cl, msg_t *msg, qboolean delta ) { if (cl->state == CS_ACTIVE) { // we didn't get a cp yet, don't assume anything and just send the gamestate all over again - Com_DPrintf( "%s: didn't get cp command, resending gamestate\n", cl->name, cl->state ); + Com_DPrintf( "%s: didn't get cp command, resending gamestate\n", cl->name); SV_SendClientGameState( cl ); } return; diff --git a/code/server/sv_game.c b/code/server/sv_game.c index f1fee90..43556bc 100644 --- a/code/server/sv_game.c +++ b/code/server/sv_game.c @@ -308,10 +308,10 @@ The module is making a system call intptr_t SV_GameSystemCalls( intptr_t *args ) { switch( args[0] ) { case G_PRINT: - Com_Printf( "%s", VMA(1) ); + Com_Printf( "%s", (const char*)VMA(1) ); return 0; case G_ERROR: - Com_Error( ERR_DROP, "%s", VMA(1) ); + Com_Error( ERR_DROP, "%s", (const char*)VMA(1) ); return 0; case G_MILLISECONDS: return Sys_Milliseconds(); -- cgit v1.2.3