From 7e7678a0e5927af625e42627ed9f5757ecf9ca89 Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Wed, 29 May 2024 20:38:13 +0200 Subject: Use strict prototypes Use the special value void as parameter for functions taking nor argument. --- src/snuffleupagus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/snuffleupagus.c') diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c index d5cb025..53e610a 100644 --- a/src/snuffleupagus.c +++ b/src/snuffleupagus.c @@ -57,7 +57,7 @@ ZEND_DLEXPORT zend_extension zend_extension_entry = { NULL, /* op_array_dtor_func_t */ STANDARD_ZEND_EXTENSION_PROPERTIES}; -static void sp_load_other_modules() { +static void sp_load_other_modules(void) { // try to load other modules before initializing Snuffleupagus zend_module_entry *module; bool should_start = false; @@ -327,7 +327,7 @@ static void add_df_to_arr(zval *arr, sp_disabled_function const *const df) { add_next_index_zval(arr, &arr_df); } -static void dump_config() { +static void dump_config(void) { zval arr; php_serialize_data_t var_hash; smart_str buf = {0}; -- cgit v1.3