diff options
author | Christophe Fergeau | 2008-08-10 23:36:33 +0200 |
---|---|---|
committer | Matt Colyer | 2008-08-11 09:39:06 -0700 |
commit | eea922593e61a71d3f231578f1e8c4c7f035ec9c (patch) | |
tree | 823d5ae4e53be4b83377ab205b1aed94fe06c021 /src/userpref.c | |
parent | 323459826aeea8b88872e14af9839a0912a80503 (diff) | |
download | libplist-eea922593e61a71d3f231578f1e8c4c7f035ec9c.tar.gz libplist-eea922593e61a71d3f231578f1e8c4c7f035ec9c.tar.bz2 |
Fix compilation with gcc 4.3 -Wall -Werror -Wno-pointer-sign
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/userpref.c')
-rw-r--r-- | src/userpref.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <glib.h> +#include <glib/gprintf.h> #include <stdio.h> #include <string.h> #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]; |