From 4852a4301af71a99f3ba7e0bc23599a8ea763cc6 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 2 Feb 2012 21:41:30 +0100 Subject: common: add missing include and type cast --- src/common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +#include #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; } -- cgit v1.1-32-gdbae