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:
parent
3ecad253f2
commit
a37e71d3d6
@ -969,7 +969,7 @@ read_file (const char *file)
|
|||||||
efficiency, but at some cost to generality. */
|
efficiency, but at some cost to generality. */
|
||||||
fm->content = mmap (NULL, fm->length, PROT_READ | PROT_WRITE,
|
fm->content = mmap (NULL, fm->length, PROT_READ | PROT_WRITE,
|
||||||
MAP_PRIVATE, fd, 0);
|
MAP_PRIVATE, fd, 0);
|
||||||
if (fm->content == MAP_FAILED)
|
if (fm->content == (char *)MAP_FAILED)
|
||||||
goto mmap_lose;
|
goto mmap_lose;
|
||||||
if (!inhibit_close)
|
if (!inhibit_close)
|
||||||
close (fd);
|
close (fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user