summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-07-28 13:14:15 +0200
committerAnatol Belski <ab@php.net>2017-07-28 14:59:31 +0200
commit44bbae99f8cf582e58f927dd2d8e724a874f9919 (patch)
treea9faefc9361a13a0f3e2ebe36cc496f4d865db91 /main
parentf4a1d9c8211fa7878af14d0bd94b2deaab19ae21 (diff)
downloadphp-git-44bbae99f8cf582e58f927dd2d8e724a874f9919.tar.gz
remove cast
Diffstat (limited to 'main')
-rw-r--r--main/fastcgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/fastcgi.c b/main/fastcgi.c
index 1e8a8064d7..41770ed2db 100644
--- a/main/fastcgi.c
+++ b/main/fastcgi.c
@@ -739,9 +739,9 @@ int fcgi_listen(const char *path, int backlog)
return listen_socket;
#else
- int path_len = strlen(path);
+ size_t path_len = strlen(path);
- if (path_len >= (int)sizeof(sa.sa_unix.sun_path)) {
+ if (path_len >= sizeof(sa.sa_unix.sun_path)) {
fcgi_log(FCGI_ERROR, "Listening socket's path name is too long.\n");
return -1;
}