mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 09:32:15 +00:00
Mark path passed to Sys_Mkdir as const.
This commit is contained in:
parent
f663d08922
commit
21d7c85044
3 changed files with 3 additions and 3 deletions
|
@ -432,7 +432,7 @@ Sys_GetGameAPI(void *parms)
|
|||
/* ================================================================ */
|
||||
|
||||
void
|
||||
Sys_Mkdir(char *path)
|
||||
Sys_Mkdir(const char *path)
|
||||
{
|
||||
mkdir(path, 0755);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue