com php-src: fixed the cast and incompatible pointer warning: sapi/cgi/fastcgi.c

From: Date: Fri, 12 Sep 2014 12:36:00 +0000
Subject: com php-src: fixed the cast and incompatible pointer warning: sapi/cgi/fastcgi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81517@lists.php.net to get a copy of this message
Commit: fdfc31a4f720ae21c214f40cf514ed1744081e51 Author: Anatol Belski <ab@php.net> Fri, 12 Sep 2014 14:36:00 +0200 Parents: 69ea7f95096163073e1473bc157b27067ae7cbf3 Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fdfc31a4f720ae21c214f40cf514ed1744081e51 Log: fixed the cast and incompatible pointer warning Changed paths: M sapi/cgi/fastcgi.c Diff: diff --git a/sapi/cgi/fastcgi.c b/sapi/cgi/fastcgi.c index 8ddc2e4..6133668 100644 --- a/sapi/cgi/fastcgi.c +++ b/sapi/cgi/fastcgi.c @@ -1112,7 +1112,7 @@ static inline void fcgi_close(fcgi_request *req, int force, int destroy) shutdown(req->fd, 1); /* read the last FCGI_STDIN header (it may be omitted) */ - recv(req->fd, &buf, sizeof(buf), 0); + recv(req->fd, (char *)(&buf), sizeof(buf), 0); } closesocket(req->fd); } @@ -1122,7 +1122,7 @@ static inline void fcgi_close(fcgi_request *req, int force, int destroy) shutdown(req->fd, 1); /* read the last FCGI_STDIN header (it may be omitted) */ - recv(req->fd, &buf, sizeof(buf), 0); + recv(req->fd, (char *)(&buf), sizeof(buf), 0); } close(req->fd); #endif

« previous php.cvs (#81517) next »