From: Simon Kelley Date: Wed, 8 Jul 2015 21:40:57 +0000 (+0100) Subject: Fix compilation warning. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45c5cb1f8fea439f69270f61f1f4027f87e85535;p=people%2Fms%2Fdnsmasq.git Fix compilation warning. --- diff --git a/src/inotify.c b/src/inotify.c index f3e5c3d..52d412f 100644 --- a/src/inotify.c +++ b/src/inotify.c @@ -42,14 +42,13 @@ static char *inotify_buffer; Return value is malloc'ed */ static char *my_readlink(char *path) { - ssize_t rc; - size_t size = 64; + ssize_t rc, size = 64; char *buf; while (1) { buf = safe_malloc(size); - rc = readlink(path, buf, size); + rc = readlink(path, buf, (size_t)size); if (rc == -1) {