From 8e7c2a05bdf27e280f1738a618912f7833b9ef36 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 2 Oct 2013 14:45:51 +0200 Subject: common: supress more compiler warnings --- src/common.c | 3 ++- src/common.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 #include #include +#include #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 #define __mkdir(path, mode) mkdir(path, mode) #define FMT_qu "%qu" #endif -- cgit v1.1-32-gdbae