From 7543032957aff8c5d8db8e6af6285e369187bb2c Mon Sep 17 00:00:00 2001 From: Andy Grover Date: Mar 08 2016 00:46:23 +0000 Subject: add missing file --- diff --git a/0001-fix-compilation-error-on-i686.patch b/0001-fix-compilation-error-on-i686.patch new file mode 100644 index 0000000..13dcf4a --- /dev/null +++ b/0001-fix-compilation-error-on-i686.patch @@ -0,0 +1,25 @@ +From 468523b876630643085c46d7b7b6b24226ffac14 Mon Sep 17 00:00:00 2001 +From: Andy Grover +Date: Mon, 7 Mar 2016 16:33:13 -0800 +Subject: [PATCH] fix compilation error on i686 + +On 32 bit machines, size_t and uint64_t are different sizes. + +Signed-off-by: Andy Grover +--- + qcow.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/qcow.c b/qcow.c +index 97852c4..9cbf83c 100644 +--- a/qcow.c ++++ b/qcow.c +@@ -759,7 +759,7 @@ static uint64_t qcow_cluster_alloc(struct qcow_state *s) + } + + /* qcow 1 simply grows the file as new clusters or L2 blocks are needed */ +-static uint64_t qcow_block_alloc(struct qcow_state *s, uint64_t size) ++static uint64_t qcow_block_alloc(struct qcow_state *s, size_t size) + { + uint64_t offset; + off_t off;