]> granicus.if.org Git - php/commitdiff
Fix readline warnings
authorNikita Popov <nikic@php.net>
Thu, 4 Sep 2014 20:50:34 +0000 (22:50 +0200)
committerNikita Popov <nikic@php.net>
Fri, 5 Sep 2014 09:20:06 +0000 (11:20 +0200)
ext/readline/readline_cli.c

index a6aeae6779e97313d7755c7017e7391aab252da1..c7fb0438e9ec7a9d7bb6f5187335caf5e9286e6c 100644 (file)
@@ -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