com php-src: Fix readline warnings: ext/readline/readline_cli .c
| From: | Nikita Popov | Date: | Fri, 05 Sep 2014 09:20:06 +0000 |
| Subject: | com php-src: Fix readline warnings: ext/readline/readline_cli .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81433@lists.php.net to get a copy of this message | ||
Commit: c48a126ba462e71d0b7b524064991121243f5459
Author: Nikita Popov <nikic@php.net> Thu, 4 Sep 2014 22:50:34 +0200
Parents: c7206771628c2119eb10444148e936265971ca33
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c48a126ba462e71d0b7b524064991121243f5459
Log:
Fix readline warnings
Changed paths:
M ext/readline/readline_cli.c
Diff:
diff --git a/ext/readline/readline_cli.c b/ext/readline/readline_cli.c
index a6aeae6..c7fb043 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