mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Match subsurface_get_conf* in windows/macos.c with linux.c
The signatures for subsurface_get_conf* in windows.c and macos.c was slightly different from those in linux.c, which broke the build (at least on Mac). Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7ea2281180
commit
f2ab8f42ee
2 changed files with 3 additions and 3 deletions
2
macos.c
2
macos.c
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue