diff options
| author | 2008-08-10 23:36:33 +0200 | |
|---|---|---|
| committer | 2008-08-11 09:39:06 -0700 | |
| commit | eea922593e61a71d3f231578f1e8c4c7f035ec9c (patch) | |
| tree | 823d5ae4e53be4b83377ab205b1aed94fe06c021 /src/userpref.c | |
| parent | 323459826aeea8b88872e14af9839a0912a80503 (diff) | |
| download | libimobiledevice-eea922593e61a71d3f231578f1e8c4c7f035ec9c.tar.gz libimobiledevice-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 @@ | |||
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <glib.h> | 22 | #include <glib.h> |
| 23 | #include <glib/gprintf.h> | ||
| 23 | #include <stdio.h> | 24 | #include <stdio.h> |
| 24 | #include <string.h> | 25 | #include <string.h> |
| 25 | #include "userpref.h" | 26 | #include "userpref.h" |
| @@ -140,7 +141,7 @@ int store_device_public_key(char* public_key) | |||
| 140 | g_io_channel_shutdown(file, TRUE, NULL); | 141 | g_io_channel_shutdown(file, TRUE, NULL); |
| 141 | 142 | ||
| 142 | /* append device to list */ | 143 | /* append device to list */ |
| 143 | gchar** new_devices_list = (gchar**)g_malloc(sizeof(gchar*)* (length + 2)); | 144 | const gchar** new_devices_list = (const gchar**)g_malloc(sizeof(gchar*)* (length + 2)); |
| 144 | int i; | 145 | int i; |
| 145 | for( i = 0; i < length; i++) | 146 | for( i = 0; i < length; i++) |
| 146 | new_devices_list[i] = devices_list[i]; | 147 | new_devices_list[i] = devices_list[i]; |
