diff options
| author | Christian Göttsche | 2024-05-29 20:38:13 +0200 |
|---|---|---|
| committer | jvoisin | 2024-06-06 16:27:24 +0200 |
| commit | 7e7678a0e5927af625e42627ed9f5757ecf9ca89 (patch) | |
| tree | cdf002330013c289f9d23298a9bc2b26fef525a2 /src/snuffleupagus.c | |
| parent | 7a3789e0f334ffd4d622b67d8b75caa15cb60577 (diff) | |
Use strict prototypes
Use the special value void as parameter for functions taking nor
argument.
Diffstat (limited to 'src/snuffleupagus.c')
| -rw-r--r-- | src/snuffleupagus.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 = { | |||
| 57 | NULL, /* op_array_dtor_func_t */ | 57 | NULL, /* op_array_dtor_func_t */ |
| 58 | STANDARD_ZEND_EXTENSION_PROPERTIES}; | 58 | STANDARD_ZEND_EXTENSION_PROPERTIES}; |
| 59 | 59 | ||
| 60 | static void sp_load_other_modules() { | 60 | static void sp_load_other_modules(void) { |
| 61 | // try to load other modules before initializing Snuffleupagus | 61 | // try to load other modules before initializing Snuffleupagus |
| 62 | zend_module_entry *module; | 62 | zend_module_entry *module; |
| 63 | bool should_start = false; | 63 | bool should_start = false; |
| @@ -327,7 +327,7 @@ static void add_df_to_arr(zval *arr, sp_disabled_function const *const df) { | |||
| 327 | add_next_index_zval(arr, &arr_df); | 327 | add_next_index_zval(arr, &arr_df); |
| 328 | } | 328 | } |
| 329 | 329 | ||
| 330 | static void dump_config() { | 330 | static void dump_config(void) { |
| 331 | zval arr; | 331 | zval arr; |
| 332 | php_serialize_data_t var_hash; | 332 | php_serialize_data_t var_hash; |
| 333 | smart_str buf = {0}; | 333 | smart_str buf = {0}; |
