From f2ab8f42ee5bbbe643b4810bf663d4f58835644b Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Mon, 1 Apr 2013 17:55:50 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- macos.c | 2 +- windows.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/macos.c b/macos.c index 93bc00eea..38e58f54b 100644 --- a/macos.c +++ b/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; diff --git a/windows.c b/windows.c index 23b6d2f4c..94e3dc546 100644 --- a/windows.c +++ b/windows.c @@ -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) -- cgit v1.2.3-70-g09d2