summaryrefslogtreecommitdiff
path: root/source/sv_ccmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sv_ccmds.c')
-rw-r--r--source/sv_ccmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/sv_ccmds.c b/source/sv_ccmds.c
index 3625b31..1519f87 100644
--- a/source/sv_ccmds.c
+++ b/source/sv_ccmds.c
@@ -297,7 +297,7 @@ static void SV_DumpUdpClients( void ) {
Com_Printf( "%7u ", svs.realtime - client->lastmessage );
Com_Printf( "%-21s ", NET_AdrToString(
&client->netchan->remote_address ) );
- Com_Printf( "%5i ", client->rate );
+ Com_Printf( "%5"PRIz" ", client->rate );
Com_Printf( "%2i ", client->protocol );
Com_Printf( "\n" );
}
@@ -327,7 +327,7 @@ static void SV_DumpTcpClients( void ) {
"--- -------------------- --- ------- --------------------- -----\n" );
count = 0;
LIST_FOR_EACH( tcpClient_t, client, &svs.tcp_client_list, entry ) {
- Com_Printf( "%3d %-20.20s %3d %7u %-21s ",
+ Com_Printf( "%3d %-20.20s %3"PRIz" %7u %-21s ",
count, client->resource ? client->resource : "",
FIFO_Usage( &client->stream.send ),
svs.realtime - client->lastmessage,
@@ -787,14 +787,14 @@ static void SV_ListBans_f( void ) {
SV_ListMatches_f( &sv_banlist );
}
-static int SV_Client_m( char *buffer, int size ) {
+static size_t SV_Client_m( char *buffer, size_t size ) {
if( !sv_client ) {
return Q_strncpyz( buffer, "unknown", size );
}
return Q_strncpyz( buffer, sv_client->name, size );
}
-static int SV_ClientNum_m( char *buffer, int size ) {
+static size_t SV_ClientNum_m( char *buffer, size_t size ) {
if( !sv_client ) {
return Q_strncpyz( buffer, "", size );
}