Skip to content

Commit 5078eb0

Browse files
committed
ext/standard/info.c: Use size_t type where appropriate
1 parent 739805d commit 5078eb0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/standard/info.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ PHPAPI extern char *php_ini_opened_path;
5151
PHPAPI extern char *php_ini_scanned_path;
5252
PHPAPI extern char *php_ini_scanned_files;
5353

54-
static ZEND_COLD int php_info_print_html_esc(const char *str, size_t len) /* {{{ */
54+
static ZEND_COLD size_t php_info_print_html_esc(const char *str, size_t len) /* {{{ */
5555
{
5656
size_t written;
5757
zend_string *new_str;
@@ -63,7 +63,7 @@ static ZEND_COLD int php_info_print_html_esc(const char *str, size_t len) /* {{{
6363
}
6464
/* }}} */
6565

66-
static ZEND_COLD int php_info_printf(const char *fmt, ...) /* {{{ */
66+
static ZEND_COLD size_t php_info_printf(const char *fmt, ...) /* {{{ */
6767
{
6868
char *buf;
6969
size_t len, written;
@@ -79,7 +79,7 @@ static ZEND_COLD int php_info_printf(const char *fmt, ...) /* {{{ */
7979
}
8080
/* }}} */
8181

82-
static zend_always_inline int php_info_print(const char *str) /* {{{ */
82+
static zend_always_inline size_t php_info_print(const char *str) /* {{{ */
8383
{
8484
return php_output_write(str, strlen(str));
8585
}
@@ -164,7 +164,7 @@ PHPAPI ZEND_COLD void php_info_print_module(zend_module_entry *zend_module) /* {
164164
/* }}} */
165165

166166
/* {{{ php_print_gpcse_array */
167-
static ZEND_COLD void php_print_gpcse_array(char *name, uint32_t name_length)
167+
static ZEND_COLD void php_print_gpcse_array(char *name, size_t name_length)
168168
{
169169
zval *data, *tmp;
170170
zend_string *string_key;
@@ -611,7 +611,7 @@ char* php_get_windows_name()
611611
/* }}} */
612612

613613
/* {{{ */
614-
void php_get_windows_cpu(char *buf, int bufsize)
614+
void php_get_windows_cpu(char *buf, size_t bufsize)
615615
{
616616
SYSTEM_INFO SysInfo;
617617
GetSystemInfo(&SysInfo);

0 commit comments

Comments
 (0)