Use size_t for get_ps_title() length parameter

This commit is contained in:
George Peter Banyard 2022-06-30 12:36:12 +01:00
parent b468d6fb54
commit 9a7d37ac66
No known key found for this signature in database
GPG key ID: 3306078E3194AEBD
3 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@ PHP_FUNCTION(cli_set_process_title)
/* {{{ Return a string with the current process title. NULL if error. */
PHP_FUNCTION(cli_get_process_title)
{
int length = 0;
size_t length = 0;
const char* title = NULL;
int rc;