const fixes

This commit is contained in:
Jonathan Gray 2013-05-02 17:21:31 +10:00
parent 70183a8566
commit 2647f1e8d1
5 changed files with 6 additions and 6 deletions

View file

@ -721,7 +721,7 @@ static void keyConcatArgs( void ) {
}
static void ConcatRemaining( const char *src, const char *start ) {
char *str;
const char *str;
str = strstr(src, start);
if (!str) {
@ -997,7 +997,7 @@ the K_* names are matched up.
to be configured even if they don't have defined names.
===================
*/
int Key_StringToKeynum( char *str ) {
int Key_StringToKeynum( const char *str ) {
int i;
if ( !str || !str[0] )

View file

@ -444,7 +444,7 @@ void IN_CenterView (void);
void CL_VerifyCode( void );
float CL_KeyState (kbutton_t *key);
int Key_StringToKeynum( char *str );
int Key_StringToKeynum( const char *str );
const char *Key_KeynumToString( int keynum/*, qboolean bTranslate */ ); //note: translate is only called for menu display not configs
//

View file

@ -950,7 +950,7 @@ qboolean FS_FilenameCompare( const char *s1, const char *s2 ) {
FS_ShiftedStrStr
===========
*/
char *FS_ShiftedStrStr(const char *string, const char *substring, int shift) {
const char *FS_ShiftedStrStr(const char *string, const char *substring, int shift) {
char buf[MAX_STRING_TOKENS];
int i;

View file

@ -983,7 +983,7 @@ image_t *R_CreateImage( const char *name, const byte *pic, int width, int height
if (name[0] == '*')
{
char *psLightMapNameSearchPos = strrchr(name,'/');
const char *psLightMapNameSearchPos = strrchr(name,'/');
if ( psLightMapNameSearchPos && !strncmp( psLightMapNameSearchPos+1, "lightmap", 8 ) ) {
isLightmap = qtrue;
}

View file

@ -144,7 +144,7 @@ static qboolean IN_IsConsoleKey( int key, const unsigned char character )
// Only parse the variable when it changes
if( cl_consoleKeys->modified )
{
char *text_p, *token;
const char *text_p, *token;
cl_consoleKeys->modified = qfalse;
text_p = cl_consoleKeys->string;