(xreadlink): Add cast to avoid a warning.
authorJim Meyering <jim@meyering.net>
Sun, 9 Dec 2001 22:46:53 +0000 (22:46 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 9 Dec 2001 22:46:53 +0000 (22:46 +0000)
lib/xreadlink.c

index 13c28456d66022a969a68e2e9a33e4d883d50834..54b5e9e5970fff0e39cacdeb7d8b799610cafcc5 100644 (file)
@@ -78,7 +78,7 @@ xreadlink (char const *filename)
          return NULL;
        }
 
-      if (link_length < buf_size)
+      if ((size_t) link_length < buf_size)
        {
          buffer[link_length] = 0;
          return buffer;