summaryrefslogtreecommitdiffstats
path: root/tools/idevicebackup.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevicebackup.c')
-rw-r--r--tools/idevicebackup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index 159f3b1..26771f8 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -35,6 +35,8 @@
35#include <gcrypt.h> 35#include <gcrypt.h>
36#endif 36#endif
37#include <unistd.h> 37#include <unistd.h>
38#include <ctype.h>
39#include <time.h>
38 40
39#include <libimobiledevice/libimobiledevice.h> 41#include <libimobiledevice/libimobiledevice.h>
40#include <libimobiledevice/lockdown.h> 42#include <libimobiledevice/lockdown.h>
@@ -228,14 +230,14 @@ static void notify_cb(const char *notification, void *userdata)
228static char *str_toupper(char* str) 230static char *str_toupper(char* str)
229{ 231{
230 char *res = strdup(str); 232 char *res = strdup(str);
231 int i; 233 unsigned int i;
232 for (i = 0; i < strlen(res); i++) { 234 for (i = 0; i < strlen(res); i++) {
233 res[i] = toupper(res[i]); 235 res[i] = toupper(res[i]);
234 } 236 }
235 return res; 237 return res;
236} 238}
237 239
238char* build_path(const char* elem, ...) 240static char* build_path(const char* elem, ...)
239{ 241{
240 if (!elem) return NULL; 242 if (!elem) return NULL;
241 va_list args; 243 va_list args;