aboutsummaryrefslogtreecommitdiffstats
path: root/code/client
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-12-30 12:32:54 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-12-30 12:32:54 +0000
commitf0fc390a026dfff392ba465b76f60f3f0e5a70e2 (patch)
treeadd91b1a36f3c11bf1b5b6a5fd5aea145c1fef52 /code/client
parentca2cf9c99df7ee76f13b7c9fa2d6ad706a3968fa (diff)
downloadioquake3-aero-f0fc390a026dfff392ba465b76f60f3f0e5a70e2.tar.gz
ioquake3-aero-f0fc390a026dfff392ba465b76f60f3f0e5a70e2.zip
- 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
Diffstat (limited to 'code/client')
-rw-r--r--code/client/cl_cgame.c4
-rw-r--r--code/client/cl_curl.c4
-rw-r--r--code/client/cl_main.c2
-rw-r--r--code/client/cl_ui.c4
-rw-r--r--code/client/snd_openal.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c
index 997a72c..4ebacb1 100644
--- a/code/client/cl_cgame.c
+++ b/code/client/cl_cgame.c
@@ -415,10 +415,10 @@ The cgame module is making a system call
intptr_t CL_CgameSystemCalls( intptr_t *args ) {
switch( args[0] ) {
case CG_PRINT:
- Com_Printf( "%s", VMA(1) );
+ Com_Printf( "%s", (const char*)VMA(1) );
return 0;
case CG_ERROR:
- Com_Error( ERR_DROP, "%s", VMA(1) );
+ Com_Error( ERR_DROP, "%s", (const char*)VMA(1) );
return 0;
case CG_MILLISECONDS:
return Sys_Milliseconds();
diff --git a/code/client/cl_curl.c b/code/client/cl_curl.c
index 38498ee..7a05b6f 100644
--- a/code/client/cl_curl.c
+++ b/code/client/cl_curl.c
@@ -105,7 +105,7 @@ static void *GPA(char *str)
}
else
{
- Com_DPrintf("Loaded symbol %s (0x%08X)\n", str, rv);
+ Com_DPrintf("Loaded symbol %s (0x%p)\n", str, rv);
return rv;
}
}
@@ -347,7 +347,7 @@ void CL_cURL_PerformDownload(void)
qcurl_easy_getinfo(msg->easy_handle, CURLINFO_RESPONSE_CODE,
&code);
- Com_Error(ERR_DROP, "Download Error: %s Code: %d URL: %s",
+ Com_Error(ERR_DROP, "Download Error: %s Code: %ld URL: %s",
qcurl_easy_strerror(msg->data.result),
code, clc.downloadURL);
}
diff --git a/code/client/cl_main.c b/code/client/cl_main.c
index 598f3be..b460919 100644
--- a/code/client/cl_main.c
+++ b/code/client/cl_main.c
@@ -993,7 +993,7 @@ void CL_Setenv_f( void ) {
if ( env ) {
Com_Printf( "%s=%s\n", Cmd_Argv(1), env );
} else {
- Com_Printf( "%s undefined\n", Cmd_Argv(1), env );
+ Com_Printf( "%s undefined\n", Cmd_Argv(1));
}
}
}
diff --git a/code/client/cl_ui.c b/code/client/cl_ui.c
index e6aae53..0dc8774 100644
--- a/code/client/cl_ui.c
+++ b/code/client/cl_ui.c
@@ -767,11 +767,11 @@ The ui module is making a system call
intptr_t CL_UISystemCalls( intptr_t *args ) {
switch( args[0] ) {
case UI_ERROR:
- Com_Error( ERR_DROP, "%s", VMA(1) );
+ Com_Error( ERR_DROP, "%s", (const char*)VMA(1) );
return 0;
case UI_PRINT:
- Com_Printf( "%s", VMA(1) );
+ Com_Printf( "%s", (const char*)VMA(1) );
return 0;
case UI_MILLISECONDS:
diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c
index d375479..1bbf5e5 100644
--- a/code/client/snd_openal.c
+++ b/code/client/snd_openal.c
@@ -896,7 +896,7 @@ static qboolean S_AL_CheckInput(int entityNum, sfxHandle_t sfx)
if (sfx < 0 || sfx >= numSfx)
{
- Com_Printf(S_COLOR_RED, "ERROR: S_AL_CheckInput: handle %i out of range\n", sfx);
+ Com_Printf(S_COLOR_RED "ERROR: S_AL_CheckInput: handle %i out of range\n", sfx);
return qtrue;
}