From f45f6d788f36dd9c192955994b44b8a58fcc1904 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Mon, 11 Sep 2000 16:25:36 +0000 Subject: [PATCH] Kill a warning --- ext/standard/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/file.c b/ext/standard/file.c index 5a208d19c5..436f9534df 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1493,11 +1493,11 @@ static size_t php_passthru_fd(int socketd, FILE *fp, int issock) fd = fileno(fp); fstat(fd, &sbuf); - if(sbuf.st_size > sizeof(buf)) { + if (sbuf.st_size > sizeof(buf)) { off = ftell(fp); len = sbuf.st_size - off; p = mmap(0, len, PROT_READ, MAP_PRIVATE, fd, off); - if(p!=MAP_FAILED) { + if (p != (void *) MAP_FAILED) { PHPWRITE(p, len); munmap(p, len); bcount += len; -- 2.50.1