diff options
author | Nikias Bassen | 2013-10-02 14:45:51 +0200 |
---|---|---|
committer | Nikias Bassen | 2013-10-02 14:45:51 +0200 |
commit | 8e7c2a05bdf27e280f1738a618912f7833b9ef36 (patch) | |
tree | fbce1aa450e041a130440cdadc3dee41219789ce | |
parent | 8b3c005184e1b03666e67cc68014e3496664066d (diff) | |
download | idevicerestore-8e7c2a05bdf27e280f1738a618912f7833b9ef36.tar.gz idevicerestore-8e7c2a05bdf27e280f1738a618912f7833b9ef36.tar.bz2 |
common: supress more compiler warnings
-rw-r--r-- | src/common.c | 3 | ||||
-rw-r--r-- | src/common.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c index 51dd68b..6c2b613 100644 --- a/src/common.c +++ b/src/common.c @@ -26,6 +26,7 @@ #include <string.h> #include <errno.h> #include <libgen.h> +#include <time.h> #include "common.h" @@ -182,7 +183,7 @@ int read_file(const char* filename, void** data, size_t* size) { } void debug_plist(plist_t plist) { - int size = 0; + uint32_t size = 0; char* data = NULL; plist_to_xml(plist, &data, &size); info("%s", data); diff --git a/src/common.h b/src/common.h index af3d1f8..a634e6f 100644 --- a/src/common.h +++ b/src/common.h @@ -120,6 +120,7 @@ char *generate_guid(); #define sleep(x) Sleep(x*1000) #endif #else +#include <sys/stat.h> #define __mkdir(path, mode) mkdir(path, mode) #define FMT_qu "%qu" #endif |