diff options
| author | Christian Göttsche | 2024-05-29 20:38:33 +0200 |
|---|---|---|
| committer | jvoisin | 2024-06-06 16:27:31 +0200 |
| commit | d82ab8d20191a9ebdb83f918c62fc6c32f068b01 (patch) | |
| tree | 8847596b0016a17f5a207f00b8e0002eff0bd349 /src/sp_utils.c | |
| parent | 7e7678a0e5927af625e42627ed9f5757ecf9ca89 (diff) | |
Declare file local variables and functions static
Avoid missing prototype warnings by declaring variables and functions
that are only used in a single file static.
Diffstat (limited to 'src/sp_utils.c')
| -rw-r--r-- | src/sp_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c index eeebcc4..82714c5 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c | |||
| @@ -395,7 +395,7 @@ bool sp_match_array_value(const zval* arr, const zend_string* to_match, const sp | |||
| 395 | return false; | 395 | return false; |
| 396 | } | 396 | } |
| 397 | 397 | ||
| 398 | bool /* success */ _hook_function(const char* original_name, HashTable* hook_table, zif_handler new_function) { | 398 | static bool /* success */ _hook_function(const char* original_name, HashTable* hook_table, zif_handler new_function) { |
| 399 | zend_function* func; | 399 | zend_function* func; |
| 400 | if ((func = zend_hash_str_find_ptr(CG(function_table), VAR_AND_LEN(original_name)))) { | 400 | if ((func = zend_hash_str_find_ptr(CG(function_table), VAR_AND_LEN(original_name)))) { |
| 401 | if (func->type != ZEND_INTERNAL_FUNCTION) { | 401 | if (func->type != ZEND_INTERNAL_FUNCTION) { |
