]> granicus.if.org Git - php/commitdiff
Kill a warning
authorSascha Schumann <sas@php.net>
Mon, 11 Sep 2000 16:25:36 +0000 (16:25 +0000)
committerSascha Schumann <sas@php.net>
Mon, 11 Sep 2000 16:25:36 +0000 (16:25 +0000)
ext/standard/file.c

index 5a208d19c50e7ded0041481f27a626efa73253b3..436f9534df916e8048298be8946812725a22582e 100644 (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;