Skip to content

Commit

Permalink
const fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangray committed May 2, 2013
1 parent 70183a8 commit 2647f1e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CODE-mp/client/cl_keys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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] )
Expand Down
2 changes: 1 addition & 1 deletion CODE-mp/client/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

//
Expand Down
2 changes: 1 addition & 1 deletion CODE-mp/qcommon/files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion CODE-mp/renderer/tr_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion CODE-mp/sdl/sdl_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2647f1e

Please sign in to comment.