diff options
-rw-r--r-- | macos.c | 2 | ||||
-rw-r--r-- | windows.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -52,7 +52,7 @@ void subsurface_set_conf_int(const char *name, int value) CFPreferencesSetAppValue(CFSTR_VAR(name), numRef, SUBSURFACE_PREFERENCES); } -const char *subsurface_get_conf(char *name) +const char *subsurface_get_conf(const char *name) { CFPropertyListRef strpref; @@ -100,7 +100,7 @@ const char *subsurface_get_conf(const char *name) return utf8_string; } -int subsurface_get_conf_int(char *name) +int subsurface_get_conf_int(const char *name) { DWORD value = -1, len = 4; LONG ret = RegQueryValueEx(hkey, (LPCTSTR)TEXT(name), NULL, NULL, @@ -110,7 +110,7 @@ int subsurface_get_conf_int(char *name) return value; } -int subsurface_get_conf_bool(char *name) +int subsurface_get_conf_bool(const char *name) { int ret = subsurface_get_conf_int(name); if (ret == -1) |