From eea922593e61a71d3f231578f1e8c4c7f035ec9c Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Sun, 10 Aug 2008 23:36:33 +0200 Subject: Fix compilation with gcc 4.3 -Wall -Werror -Wno-pointer-sign Signed-off-by: Matt Colyer --- src/userpref.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/userpref.c') diff --git a/src/userpref.c b/src/userpref.c index cd29c43..49a3c45 100644 --- a/src/userpref.c +++ b/src/userpref.c @@ -20,6 +20,7 @@ */ #include +#include #include #include #include "userpref.h" @@ -140,7 +141,7 @@ int store_device_public_key(char* public_key) g_io_channel_shutdown(file, TRUE, NULL); /* append device to list */ - gchar** new_devices_list = (gchar**)g_malloc(sizeof(gchar*)* (length + 2)); + const gchar** new_devices_list = (const gchar**)g_malloc(sizeof(gchar*)* (length + 2)); int i; for( i = 0; i < length; i++) new_devices_list[i] = devices_list[i]; -- cgit v1.1-32-gdbae