Mark path passed to Sys_Mkdir as const.

This commit is contained in:
Yamagi 2020-10-20 09:35:07 +02:00
parent f663d08922
commit 21d7c85044
3 changed files with 3 additions and 3 deletions

View File

@ -432,7 +432,7 @@ Sys_GetGameAPI(void *parms)
/* ================================================================ */
void
Sys_Mkdir(char *path)
Sys_Mkdir(const char *path)
{
mkdir(path, 0755);
}

View File

@ -454,7 +454,7 @@ Sys_GetGameAPI(void *parms)
/* ======================================================================= */
void
Sys_Mkdir(char *path)
Sys_Mkdir(const char *path)
{
WCHAR wpath[MAX_OSPATH] = {0};
MultiByteToWideChar(CP_UTF8, 0, path, -1, wpath, MAX_OSPATH);

View File

@ -336,7 +336,7 @@ void randk_seed(void);
extern int curtime; /* time returned by last Sys_Milliseconds */
int Sys_Milliseconds(void);
void Sys_Mkdir(char *path);
void Sys_Mkdir(const char *path);
qboolean Sys_IsDir(const char *path);
qboolean Sys_IsFile(const char *path);