summaryrefslogtreecommitdiffstats
path: root/macos.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-10 20:44:48 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-10 20:45:22 -0800
commitac376ea379b50bab3b172842d9ce2e67e3b03783 (patch)
treea6719d31c87dd4b23908a28991f894f477561e85 /macos.c
parent6c0289daa055fb13d5bff8de9da194d1205f908c (diff)
downloadsubsurface-ac376ea379b50bab3b172842d9ce2e67e3b03783.tar.gz
Fix Mac build
Just make the code compile on MacOS X Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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)