From ac376ea379b50bab3b172842d9ce2e67e3b03783 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 10 Jan 2013 20:44:48 -0800 Subject: Fix Mac build Just make the code compile on MacOS X Signed-off-by: Dirk Hohndel --- macos.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'macos.c') 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) -- cgit v1.2.3-70-g09d2