diff options
author | /dev/humancontroller <devhc@example.com> | 2015-02-02 00:18:01 +0100 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-02-07 17:34:58 +0100 |
commit | 67b417c41984ad49d1c13f31832eaa5fa825bd3b (patch) | |
tree | d857413298cd7ece92c9281d141328cf07c6df07 /src/qcommon | |
parent | df10b2a4424296ab35f2826cc67ac4257655c02a (diff) |
silence a bunch of compiler warnings
Diffstat (limited to 'src/qcommon')
-rw-r--r-- | src/qcommon/common.c | 4 | ||||
-rw-r--r-- | src/qcommon/qcommon.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/qcommon/common.c b/src/qcommon/common.c index 11e723c1..80a8df7b 100644 --- a/src/qcommon/common.c +++ b/src/qcommon/common.c @@ -3451,7 +3451,7 @@ static qboolean Field_CompletePlayerNameFinal( qboolean whitespace ) return qfalse; } -static void Name_PlayerNameCompletion( const char **names, int nameCount, void(*callback)(const char *s) ) +static void Name_PlayerNameCompletion( const char *const *names, int nameCount, void(*callback)(const char *s) ) { int i; @@ -3535,7 +3535,7 @@ qboolean Com_PlayerNameToFieldString( char *str, int length, const char *name ) return qtrue; } -void Field_CompletePlayerName( char **names, int nameCount ) +void Field_CompletePlayerName( const char *const *names, int nameCount ) { qboolean whitespace; diff --git a/src/qcommon/qcommon.h b/src/qcommon/qcommon.h index ef8fcbd5..0413a36c 100644 --- a/src/qcommon/qcommon.h +++ b/src/qcommon/qcommon.h @@ -742,7 +742,7 @@ void Field_CompleteFilename( const char *dir, const char *ext, qboolean stripExt, qboolean allowNonPureFilesOnDisk ); void Field_CompleteCommand( char *cmd, qboolean doCommands, qboolean doCvars ); -void Field_CompletePlayerName( char **names, int count ); +void Field_CompletePlayerName( const char *const *names, int count ); /* ============================================================== |