[PATCH] Constify COM_CheckExtension

Signed-off-by: Tyrann <tyrann@disenchant.net>
This commit is contained in:
Tyrann 2006-09-10 19:07:56 +09:30
parent b743cd0fec
commit dd3d6a5ac6
4 changed files with 4 additions and 4 deletions

View File

@ -783,7 +783,7 @@ COM_DefaultExtension(char *path, char *extension)
}
int
COM_CheckExtension(char *path, char *extn)
COM_CheckExtension(const char *path, const char *extn)
{
char *pos;
int ret = 0;

View File

@ -142,7 +142,7 @@ char *COM_SkipPath(char *pathname);
void COM_StripExtension(char *in, char *out);
void COM_FileBase(const char *in, char *out);
void COM_DefaultExtension(char *path, char *extension);
int COM_CheckExtension(char *path, char *extn);
int COM_CheckExtension(const char *path, const char *extn);
char *va(char *format, ...);

View File

@ -158,7 +158,7 @@ const char *COM_SkipPath(const char *pathname);
void COM_StripExtension(const char *in, char *out);
void COM_FileBase(const char *in, char *out);
void COM_DefaultExtension(char *path, const char *extension);
int COM_CheckExtension(char *path, char *extn);
int COM_CheckExtension(const char *path, const char *extn);
char *va(char *format, ...);

View File

@ -890,7 +890,7 @@ COM_DefaultExtension(char *path, const char *extension)
}
int
COM_CheckExtension(char *path, char *extn)
COM_CheckExtension(const char *path, const char *extn)
{
char *pos;
int ret = 0;