1
0
mirror of https://github.com/php/php-src.git synced 2026-04-12 18:43:37 +02:00

Kill a warning

This commit is contained in:
Sascha Schumann
2000-09-11 16:25:36 +00:00
parent 95d2ca8a46
commit f45f6d788f

View File

@@ -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;