From d82ab8d20191a9ebdb83f918c62fc6c32f068b01 Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Wed, 29 May 2024 20:38:33 +0200 Subject: 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. --- src/sp_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp_utils.c') 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 return false; } -bool /* success */ _hook_function(const char* original_name, HashTable* hook_table, zif_handler new_function) { +static bool /* success */ _hook_function(const char* original_name, HashTable* hook_table, zif_handler new_function) { zend_function* func; if ((func = zend_hash_str_find_ptr(CG(function_table), VAR_AND_LEN(original_name)))) { if (func->type != ZEND_INTERNAL_FUNCTION) { -- cgit v1.3