summaryrefslogtreecommitdiffstats
path: root/macos.c
diff options
context:
space:
mode:
Diffstat (limited to 'macos.c')
-rw-r--r--macos.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/macos.c b/macos.c
index 4586f00af..b2b96cc83 100644
--- a/macos.c
+++ b/macos.c
@@ -31,12 +31,12 @@ void subsurface_unset_conf(char *name)
CFPreferencesSetAppValue(CFSTR_VAR(name), NULL, SUBSURFACE_PREFERENCES);
}
-void subsurface_set_conf(char *name, const void *value)
+void subsurface_set_conf(char *name, const char *value)
{
CFPreferencesSetAppValue(CFSTR_VAR(name), CFSTR_VAR(value), SUBSURFACE_PREFERENCES);
}
-void subsurface_set_conf(char *name, int value)
+void subsurface_set_conf_bool(char *name, int value)
{
CFPreferencesSetAppValue(CFSTR_VAR(name),
value ? kCFBooleanTrue : kCFBooleanFalse, SUBSURFACE_PREFERENCES);
@@ -55,7 +55,6 @@ const void *subsurface_get_conf(char *name)
int subsurface_get_conf_bool(char *name)
{
Boolean boolpref, exists;
- CFPropertyListRef strpref;
boolpref = CFPreferencesGetAppBooleanValue(CFSTR_VAR(name), SUBSURFACE_PREFERENCES, &exists);
if (!exists)