From 2923d314cac87cfe83b6c786a0250e88684e6f4c Mon Sep 17 00:00:00 2001 From: tedbullock Date: Fri, 16 Nov 2007 03:52:29 +0000 Subject: [PATCH] Fix extraneous cast --- httperf/src/gen/uri_wlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httperf/src/gen/uri_wlog.c b/httperf/src/gen/uri_wlog.c index ab03ae5..9af1303 100755 --- a/httperf/src/gen/uri_wlog.c +++ b/httperf/src/gen/uri_wlog.c @@ -141,7 +141,7 @@ init_wlog (void) /* mmap anywhere in address space: */ fbase = (char *) mmap (0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); - if (fbase == (char *) 0 - 1) + if (fbase == (char *) -1) panic ("%s: can't mmap the file: %s\n", prog_name, strerror (errno)); close (fd);