]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Fix compilation warning.
authorSimon Kelley <simon@thekelleys.org.uk>
Wed, 8 Jul 2015 21:40:57 +0000 (22:40 +0100)
committerSimon Kelley <simon@thekelleys.org.uk>
Wed, 8 Jul 2015 21:40:57 +0000 (22:40 +0100)
src/inotify.c

index f3e5c3d1689f1e66a95bce7e702c62b805ae8bf6..52d412f9e852d6455bf1aba40724b23a9adc6b5d 100644 (file)
@@ -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)
        {