]> sjero.net Git - wget/commitdiff
[svn] Cast MMAP_FAILED to char *.
authorhniksic <devnull@localhost>
Fri, 6 Apr 2001 04:43:13 +0000 (21:43 -0700)
committerhniksic <devnull@localhost>
Fri, 6 Apr 2001 04:43:13 +0000 (21:43 -0700)
src/utils.c

index 1988e607c0f4d12faa6d9d96b03171d345718fd9..3ec93e9b5c9e7ecab16b66b010c5696e22a8b892 100644 (file)
@@ -969,7 +969,7 @@ read_file (const char *file)
        efficiency, but at some cost to generality.  */
     fm->content = mmap (NULL, fm->length, PROT_READ | PROT_WRITE,
                        MAP_PRIVATE, fd, 0);
-    if (fm->content == MAP_FAILED)
+    if (fm->content == (char *)MAP_FAILED)
       goto mmap_lose;
     if (!inhibit_close)
       close (fd);