From c48a126ba462e71d0b7b524064991121243f5459 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 4 Sep 2014 22:50:34 +0200 Subject: [PATCH] Fix readline warnings --- ext/readline/readline_cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/readline/readline_cli.c b/ext/readline/readline_cli.c index a6aeae6779..c7fb0438e9 100644 --- a/ext/readline/readline_cli.c +++ b/ext/readline/readline_cli.c @@ -79,7 +79,7 @@ ZEND_DECLARE_MODULE_GLOBALS(cli_readline); static char php_last_char = '\0'; static FILE *pager_pipe = NULL; -static size_t readline_shell_write(const char *str, uint str_length TSRMLS_DC) /* {{{ */ +static size_t readline_shell_write(const char *str, size_t str_length TSRMLS_DC) /* {{{ */ { if (CLIR_G(prompt_str)) { smart_str_appendl(CLIR_G(prompt_str), str, str_length); @@ -97,7 +97,7 @@ static size_t readline_shell_write(const char *str, uint str_length TSRMLS_DC) / } /* }}} */ -static int readline_shell_ub_write(const char *str, uint str_length TSRMLS_DC) /* {{{ */ +static size_t readline_shell_ub_write(const char *str, size_t str_length TSRMLS_DC) /* {{{ */ { /* We just store the last char here and then pass back to the caller (sapi_cli_single_write in sapi/cli) which will actually -- 2.50.1