summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-09-04 22:50:34 +0200
committerNikita Popov <nikic@php.net>2014-09-05 11:20:06 +0200
commitc48a126ba462e71d0b7b524064991121243f5459 (patch)
tree9301369e1337852dc17f6795b8f95a0477b3978d /ext/readline
parentc7206771628c2119eb10444148e936265971ca33 (diff)
downloadphp-git-c48a126ba462e71d0b7b524064991121243f5459.tar.gz
Fix readline warnings
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline_cli.c4
1 files 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