Skip to content

Commit 4844c7a

Browse files
committed
ext/sysvshm: voidify php_remove_shm_data()
1 parent e897621 commit 4844c7a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ext/sysvshm/sysvshm.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ sysvshm_module php_sysvshm;
9292

9393
static int php_put_shm_data(sysvshm_chunk_head *ptr, zend_long key, const char *data, zend_long len);
9494
static zend_long php_check_shm_data(sysvshm_chunk_head *ptr, zend_long key);
95-
static int php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos);
95+
static void php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos);
9696

9797
/* {{{ PHP_MINIT_FUNCTION */
9898
PHP_MINIT_FUNCTION(sysvshm)
@@ -423,8 +423,7 @@ static zend_long php_check_shm_data(sysvshm_chunk_head *ptr, zend_long key)
423423
}
424424
/* }}} */
425425

426-
/* {{{ php_remove_shm_data */
427-
static int php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos)
426+
static void php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos)
428427
{
429428
sysvshm_chunk *chunk_ptr, *next_chunk_ptr;
430429
zend_long memcpy_len;
@@ -440,8 +439,6 @@ static int php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos)
440439
if (memcpy_len > 0) {
441440
memmove(chunk_ptr, next_chunk_ptr, memcpy_len);
442441
}
443-
return 0;
444442
}
445-
/* }}} */
446443

447444
#endif /* HAVE_SYSVSHM */

0 commit comments

Comments
 (0)