summaryrefslogtreecommitdiff
path: root/main/fastcgi.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-06-21 17:56:07 +0300
committerDmitry Stogov <dmitry@zend.com>2016-06-21 17:56:07 +0300
commit22ecd4428a74a0e9d535f984072d363da39cb052 (patch)
treefcea2c79213759b45f8aee4118c6a45b8a8868bf /main/fastcgi.c
parent307e6b7ac99197aae9917ceeccdb89d7db324f4a (diff)
downloadphp-git-22ecd4428a74a0e9d535f984072d363da39cb052.tar.gz
Fixed compilation warnings
Diffstat (limited to 'main/fastcgi.c')
-rw-r--r--main/fastcgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/fastcgi.c b/main/fastcgi.c
index 8fc7d6a968..3f2efc86f1 100644
--- a/main/fastcgi.c
+++ b/main/fastcgi.c
@@ -734,7 +734,7 @@ int fcgi_listen(const char *path, int backlog)
#else
int path_len = strlen(path);
- if (path_len >= sizeof(sa.sa_unix.sun_path)) {
+ if (path_len >= (int)sizeof(sa.sa_unix.sun_path)) {
fcgi_log(FCGI_ERROR, "Listening socket's path name is too long.\n");
return -1;
}
@@ -1587,7 +1587,7 @@ int fcgi_write(fcgi_request *req, fcgi_request_type type, const char *str, int l
}
memcpy(req->out_pos, str, len);
req->out_pos += len;
- } else if (len - limit < sizeof(req->out_buf) - sizeof(fcgi_header)) {
+ } else if (len - limit < (int)(sizeof(req->out_buf) - sizeof(fcgi_header))) {
if (!req->out_hdr) {
open_packet(req, type);
}