From a37e71d3d6ef941fe954bf78c7dd66bc2963fd6c Mon Sep 17 00:00:00 2001 From: hniksic Date: Thu, 5 Apr 2001 21:43:13 -0700 Subject: [PATCH] [svn] Cast MMAP_FAILED to char *. --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index 1988e607..3ec93e9b 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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);