From: Pavel Charvat Date: Mon, 11 Dec 2006 20:26:07 +0000 (+0100) Subject: size_t != uns X-Git-Tag: holmes-import~506^2~13^2~198 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=cb5e70afa1339bb907f86d165c7364af59b72968;p=libucw.git size_t != uns --- diff --git a/lib/lizard-safe.c b/lib/lizard-safe.c index ebefa154..7553b459 100644 --- a/lib/lizard-safe.c +++ b/lib/lizard-safe.c @@ -56,7 +56,7 @@ lizard_realloc(struct lizard_buffer *buf, uns max_len) buf->len = max_len; buf->ptr = mmap(NULL, buf->len + PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); if (buf->ptr == MAP_FAILED) - die("mmap(anonymous, %d bytes): %m", buf->len + PAGE_SIZE); + die("mmap(anonymous, %d bytes): %m", (uns)(buf->len + PAGE_SIZE)); if (mprotect(buf->ptr + buf->len, PAGE_SIZE, PROT_NONE) < 0) die("mprotect: %m"); }