summaryrefslogtreecommitdiffstats
path: root/windows.c
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-04-01 17:55:50 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-01 10:01:01 -0700
commitf2ab8f42ee5bbbe643b4810bf663d4f58835644b (patch)
tree09b47c63b68bd0f2dc7c5d228b8b201988223466 /windows.c
parent7ea22811802cda1df227e7fb4b76720fc15b2dcd (diff)
downloadsubsurface-f2ab8f42ee5bbbe643b4810bf663d4f58835644b.tar.gz
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>
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c4
1 files changed, 2 insertions, 2 deletions
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)