use const char for fopen mode
Fixes -Wwrite-strings warnings. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
+2
-2
@@ -21,7 +21,7 @@ int _wopen (const char *path, int oflag, ...)
|
||||
}
|
||||
#endif
|
||||
|
||||
bool hc_fopen (HCFILE *fp, const char *path, char *mode)
|
||||
bool hc_fopen (HCFILE *fp, const char *path, const char *mode)
|
||||
{
|
||||
if (path == NULL || mode == NULL) return false;
|
||||
|
||||
@@ -130,7 +130,7 @@ bool hc_fopen (HCFILE *fp, const char *path, char *mode)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool hc_fopen_raw (HCFILE *fp, const char *path, char *mode)
|
||||
bool hc_fopen_raw (HCFILE *fp, const char *path, const char *mode)
|
||||
{
|
||||
if (path == NULL || mode == NULL) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user