From daefeb59d52f7da4b827b9c369529eedda4be4ba Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Tue, 29 May 2001 20:32:57 +0000 Subject: [PATCH] Kill warning. --- ext/standard/output.c | 3 ++- main/output.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/standard/output.c b/ext/standard/output.c index 0409a1c261..d406b7e2ca 100644 --- a/ext/standard/output.c +++ b/ext/standard/output.c @@ -43,9 +43,10 @@ int output_globals_id; php_output_globals output_globals; #endif -static php_default_output_func(const char *str, uint str_len) +static int php_default_output_func(const char *str, uint str_len) { fwrite(str, 1, str_len, stderr); + return str_len; } diff --git a/main/output.c b/main/output.c index 0409a1c261..d406b7e2ca 100644 --- a/main/output.c +++ b/main/output.c @@ -43,9 +43,10 @@ int output_globals_id; php_output_globals output_globals; #endif -static php_default_output_func(const char *str, uint str_len) +static int php_default_output_func(const char *str, uint str_len) { fwrite(str, 1, str_len, stderr); + return str_len; } -- 2.50.1