summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_admin.c4
-rw-r--r--src/game/g_admin.h4
-rw-r--r--src/game/g_client.c2
-rw-r--r--src/game/g_local.h6
-rw-r--r--src/game/g_session.c2
-rw-r--r--src/game/g_svcmds.c4
6 files changed, 11 insertions, 11 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index d10c718..8a9d130 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -519,7 +519,7 @@ static qboolean admin_permission( char *flags, const char *flag, qboolean *perm
// This function should only be used directly when the client is connecting and thus has no GUID.
// Else, use G_admin_permission()
-qboolean G_admin_permission_guid( char *guid, const char *flag )
+qboolean G_admin_permission_guid( const char *guid, const char *flag )
{
int i;
int l = 0;
@@ -1630,7 +1630,7 @@ void G_admin_duration( int secs, char *duration, int dursize )
Com_sprintf( duration, dursize, "%i seconds", secs );
}
-qboolean G_admin_ban_check( char *userinfo, char *reason, int rlen )
+qboolean G_admin_ban_check( const char *userinfo, char *reason, int rlen )
{
static char lastConnectIP[ 16 ] = {""};
static int lastConnectTime = 0;
diff --git a/src/game/g_admin.h b/src/game/g_admin.h
index 0ff07c8..ff2f767 100644
--- a/src/game/g_admin.h
+++ b/src/game/g_admin.h
@@ -263,11 +263,11 @@ typedef struct g_admin_archive
g_admin_archive_t;
-qboolean G_admin_ban_check( char *userinfo, char *reason, int rlen );
+qboolean G_admin_ban_check( const char *userinfo, char *reason, int rlen );
qboolean G_admin_cmd_check( gentity_t *ent, qboolean say );
qboolean G_admin_readconfig( gentity_t *ent, int skiparg );
qboolean G_admin_permission( gentity_t *ent, const char *flag );
-qboolean G_admin_permission_guid( char *guid, const char *flag );
+qboolean G_admin_permission_guid( const char *guid, const char *flag );
qboolean G_admin_name_check( gentity_t *ent, char *name, char *err, int len );
void G_admin_namelog_update( gclient_t *ent, qboolean disconnect );
void G_admin_IPA_judgement( const char *ipa, int rating, const char *comment );
diff --git a/src/game/g_client.c b/src/game/g_client.c
index f9a72ea..3325289 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1395,7 +1395,7 @@ to the server machine, but qfalse on map changes and tournement
restarts.
============
*/
-char *ClientConnect( int clientNum, qboolean firstTime )
+const char *ClientConnect( int clientNum, qboolean firstTime )
{
char *value;
gclient_t *client;
diff --git a/src/game/g_local.h b/src/game/g_local.h
index 5a92ef6..83431c0 100644
--- a/src/game/g_local.h
+++ b/src/game/g_local.h
@@ -1119,7 +1119,7 @@ char *G_NextNewbieName( gentity_t *ent );
//
qboolean ConsoleCommand( void );
void G_ProcessIPBans( void );
-qboolean G_FilterPacket( char *from );
+qboolean G_FilterPacket( const char *from );
//
// g_weapon.c
@@ -1160,7 +1160,7 @@ qboolean G_Flood_Limited( gentity_t *ent );
//
// g_client.c
//
-char *ClientConnect( int clientNum, qboolean firstTime );
+const char *ClientConnect( int clientNum, qboolean firstTime );
void ClientUserinfoChanged( int clientNum, qboolean forceName );
void ClientDisconnect( int clientNum );
void ClientBegin( int clientNum );
@@ -1200,7 +1200,7 @@ void Svcmd_GameMem_f( void );
// g_session.c
//
void G_ReadSessionData( gclient_t *client );
-void G_InitSessionData( gclient_t *client, char *userinfo );
+void G_InitSessionData( gclient_t *client, const char *userinfo );
void G_WriteSessionData( void );
//
diff --git a/src/game/g_session.c b/src/game/g_session.c
index c303134..c9450b7 100644
--- a/src/game/g_session.c
+++ b/src/game/g_session.c
@@ -117,7 +117,7 @@ G_InitSessionData
Called on a first-time connect
================
*/
-void G_InitSessionData( gclient_t *client, char *userinfo )
+void G_InitSessionData( gclient_t *client, const char *userinfo )
{
clientSession_t *sess;
const char *value;
diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.c
index 66a7c6a..c074abc 100644
--- a/src/game/g_svcmds.c
+++ b/src/game/g_svcmds.c
@@ -183,12 +183,12 @@ static void UpdateIPBans( void )
G_FilterPacket
=================
*/
-qboolean G_FilterPacket( char *from )
+qboolean G_FilterPacket( const char *from )
{
int i;
unsigned in;
byte m[ 4 ];
- char *p;
+ const char *p;
i = 0;
p = from;