1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Cast MMAP_FAILED to char *.

This commit is contained in:
hniksic 2001-04-05 21:43:13 -07:00
parent 3ecad253f2
commit a37e71d3d6

View 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);