Skip to content

Commit 4c5995b

Browse files
committed
fcgi_write in fpm returns ssizt_t, but it returns int in cgi
1 parent c3ff9aa commit 4c5995b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fpm/fpm/fpm_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ void sapi_cgi_log_fastcgi(int level, char *message, size_t len)
669669
* - the message is not empty
670670
*/
671671
if (CGIG(fcgi_logging) && request && message && len > 0) {
672-
int ret;
672+
ssize_t ret;
673673
char *buf = malloc(len + 2);
674674
memcpy(buf, message, len);
675675
memcpy(buf + len, "\n", sizeof("\n"));

0 commit comments

Comments
 (0)