summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-02-02 21:41:30 +0100
committerGravatar Nikias Bassen2012-02-02 21:41:30 +0100
commit4852a4301af71a99f3ba7e0bc23599a8ea763cc6 (patch)
tree328a8285f0d094995b08559ae538881c3c6f8231 /src
parent25652afe4c0cb323b16e5666e2cc8372f320f49a (diff)
downloadidevicerestore-4852a4301af71a99f3ba7e0bc23599a8ea763cc6.tar.gz
idevicerestore-4852a4301af71a99f3ba7e0bc23599a8ea763cc6.tar.bz2
common: add missing include and type cast
Diffstat (limited to 'src')
-rw-r--r--src/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 57f465a..46e66ef 100644
--- a/src/common.c
+++ b/src/common.c
@@ -20,6 +20,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include "common.h"
@@ -40,7 +41,7 @@ int write_file(const char* filename, const void* data, size_t size) {
fclose(file);
if (bytes != size) {
- error("ERROR: Unable to write entire file: %s: %d of %d\n", filename, bytes, size);
+ error("ERROR: Unable to write entire file: %s: %d of %d\n", filename, (int)bytes, (int)size);
return -1;
}