(xreadlink): Add cast to avoid a warning.
[gnulib.git] / lib / xreadlink.c
index b58330a..54b5e9e 100644 (file)
@@ -1,4 +1,4 @@
-/* exclude.c -- exclude file names
+/* xreadlink.c -- readlink wrapper to return the link name in malloc'd storage
 
    Copyright 2001 Free Software Foundation, Inc.
 
@@ -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;