diff options
author | Dmitry Stogov <dmitry@zend.com> | 2016-06-21 17:56:07 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2016-06-21 17:56:07 +0300 |
commit | 22ecd4428a74a0e9d535f984072d363da39cb052 (patch) | |
tree | fcea2c79213759b45f8aee4118c6a45b8a8868bf /main/fastcgi.c | |
parent | 307e6b7ac99197aae9917ceeccdb89d7db324f4a (diff) | |
download | php-git-22ecd4428a74a0e9d535f984072d363da39cb052.tar.gz |
Fixed compilation warnings
Diffstat (limited to 'main/fastcgi.c')
-rw-r--r-- | main/fastcgi.c | 4 |
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); } |