mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Fix warnings that names passed to Name_PlayerNameCompletion is not const
This commit is contained in:
parent
d8afce6805
commit
8b458e5457
4 changed files with 4 additions and 4 deletions
|
@ -1806,7 +1806,7 @@ static void CL_CompletePlayerName( char *args, int argNum )
|
||||||
if( argNum == 2 )
|
if( argNum == 2 )
|
||||||
{
|
{
|
||||||
char names[MAX_CLIENTS][MAX_NAME_LENGTH];
|
char names[MAX_CLIENTS][MAX_NAME_LENGTH];
|
||||||
char *namesPtr[MAX_CLIENTS];
|
const char *namesPtr[MAX_CLIENTS];
|
||||||
int i;
|
int i;
|
||||||
int clientCount;
|
int clientCount;
|
||||||
int nameCount;
|
int nameCount;
|
||||||
|
|
|
@ -3699,7 +3699,7 @@ qboolean Com_PlayerNameToFieldString( char *str, int length, const char *name )
|
||||||
return qtrue;
|
return qtrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Field_CompletePlayerName( char **names, int nameCount )
|
void Field_CompletePlayerName( const char **names, int nameCount )
|
||||||
{
|
{
|
||||||
qboolean whitespace;
|
qboolean whitespace;
|
||||||
|
|
||||||
|
|
|
@ -762,7 +762,7 @@ void Field_CompleteFilename( const char *dir,
|
||||||
const char *ext, qboolean stripExt, qboolean allowNonPureFilesOnDisk );
|
const char *ext, qboolean stripExt, qboolean allowNonPureFilesOnDisk );
|
||||||
void Field_CompleteCommand( char *cmd,
|
void Field_CompleteCommand( char *cmd,
|
||||||
qboolean doCommands, qboolean doCvars );
|
qboolean doCommands, qboolean doCvars );
|
||||||
void Field_CompletePlayerName( char **names, int count );
|
void Field_CompletePlayerName( const char **names, int count );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==============================================================
|
==============================================================
|
||||||
|
|
|
@ -1480,7 +1480,7 @@ SV_CompletePlayerName
|
||||||
static void SV_CompletePlayerName( char *args, int argNum ) {
|
static void SV_CompletePlayerName( char *args, int argNum ) {
|
||||||
if( argNum == 2 ) {
|
if( argNum == 2 ) {
|
||||||
char names[MAX_CLIENTS][MAX_NAME_LENGTH];
|
char names[MAX_CLIENTS][MAX_NAME_LENGTH];
|
||||||
char *namesPtr[MAX_CLIENTS];
|
const char *namesPtr[MAX_CLIENTS];
|
||||||
client_t *cl;
|
client_t *cl;
|
||||||
int i;
|
int i;
|
||||||
int nameCount;
|
int nameCount;
|
||||||
|
|
Loading…
Reference in a new issue