Skip to content

Commit

Permalink
Mark private function as static
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 31, 2021
1 parent edf2947 commit 9b170a4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Zend/Optimizer/zend_func_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,9 @@ ZEND_API uint32_t zend_get_func_info(
return ret;
}

void zend_func_info_add(const func_info_t *func_infos, size_t n)
static void zend_func_info_add(const func_info_t *func_infos, size_t n)
{
size_t i;

for (i = 0; i < n; i++) {
for (size_t i = 0; i < n; i++) {
zend_string *key = zend_string_init_interned(func_infos[i].name, func_infos[i].name_len, 1);

if (zend_hash_add_ptr(&func_info, key, (void**)&func_infos[i]) == NULL) {
Expand Down

0 comments on commit 9b170a4

Please sign in to comment.