diff options
| author | jvoisin | 2020-11-06 16:51:41 +0100 |
|---|---|---|
| committer | jvoisin | 2020-11-06 16:51:41 +0100 |
| commit | 69459369754b07d3fa4379c2b60a5f8ba9fcd45d (patch) | |
| tree | d524bbf116122533bb0f8b30ec442b9849f32b1c /src | |
| parent | 8470b432b50cc37d4b4782930476aa0acf137080 (diff) | |
Use proper prototype declaration
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp_cookie_encryption.h | 2 | ||||
| -rw-r--r-- | src/sp_disable_xxe.h | 2 | ||||
| -rw-r--r-- | src/sp_disabled_functions.h | 2 | ||||
| -rw-r--r-- | src/sp_harden_rand.h | 2 | ||||
| -rw-r--r-- | src/sp_session.h | 2 | ||||
| -rw-r--r-- | src/sp_sloppy.h | 2 | ||||
| -rw-r--r-- | src/sp_tree.h | 2 | ||||
| -rw-r--r-- | src/sp_upload_validation.h | 2 | ||||
| -rw-r--r-- | src/sp_utils.h | 2 | ||||
| -rw-r--r-- | src/sp_wrapper.h | 4 |
10 files changed, 11 insertions, 11 deletions
diff --git a/src/sp_cookie_encryption.h b/src/sp_cookie_encryption.h index 6d204bb..aede479 100644 --- a/src/sp_cookie_encryption.h +++ b/src/sp_cookie_encryption.h | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | #define SAMESITE_COOKIE_FORMAT "; samesite=" | 14 | #define SAMESITE_COOKIE_FORMAT "; samesite=" |
| 15 | 15 | ||
| 16 | int hook_cookies(); | 16 | int hook_cookies(void); |
| 17 | int decrypt_cookie(zval *pDest, int num_args, va_list args, | 17 | int decrypt_cookie(zval *pDest, int num_args, va_list args, |
| 18 | zend_hash_key *hash_key); | 18 | zend_hash_key *hash_key); |
| 19 | 19 | ||
diff --git a/src/sp_disable_xxe.h b/src/sp_disable_xxe.h index 274c169..bd7b28c 100644 --- a/src/sp_disable_xxe.h +++ b/src/sp_disable_xxe.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #ifndef __SP_DISABLE_XXE_H | 1 | #ifndef __SP_DISABLE_XXE_H |
| 2 | #define __SP_DISABLE_XXE_H | 2 | #define __SP_DISABLE_XXE_H |
| 3 | 3 | ||
| 4 | int hook_libxml_disable_entity_loader(); | 4 | int hook_libxml_disable_entity_loader(void); |
| 5 | 5 | ||
| 6 | #endif /* __SP_DISABLE_XXE_H */ | 6 | #endif /* __SP_DISABLE_XXE_H */ |
diff --git a/src/sp_disabled_functions.h b/src/sp_disabled_functions.h index 3999aec..baf40dd 100644 --- a/src/sp_disabled_functions.h +++ b/src/sp_disabled_functions.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | extern zend_write_func_t zend_write_default; | 4 | extern zend_write_func_t zend_write_default; |
| 5 | 5 | ||
| 6 | int hook_disabled_functions(); | 6 | int hook_disabled_functions(void); |
| 7 | int hook_echo(const char *, size_t); | 7 | int hook_echo(const char *, size_t); |
| 8 | void should_disable_ht(zend_execute_data *, const char *, const zend_string *, | 8 | void should_disable_ht(zend_execute_data *, const char *, const zend_string *, |
| 9 | const char *, const sp_list_node *, const HashTable *); | 9 | const char *, const sp_list_node *, const HashTable *); |
diff --git a/src/sp_harden_rand.h b/src/sp_harden_rand.h index 53ebdd0..bbe9be4 100644 --- a/src/sp_harden_rand.h +++ b/src/sp_harden_rand.h | |||
| @@ -5,6 +5,6 @@ | |||
| 5 | #include "ext/standard/php_random.h" | 5 | #include "ext/standard/php_random.h" |
| 6 | #include "zend_exceptions.h" | 6 | #include "zend_exceptions.h" |
| 7 | 7 | ||
| 8 | int hook_rand(); | 8 | int hook_rand(void); |
| 9 | 9 | ||
| 10 | #endif /* __SP_HARDEN_RAND_H */ | 10 | #endif /* __SP_HARDEN_RAND_H */ |
diff --git a/src/sp_session.h b/src/sp_session.h index 435e983..06a0ce7 100644 --- a/src/sp_session.h +++ b/src/sp_session.h | |||
| @@ -7,4 +7,4 @@ | |||
| 7 | #include "ext/hash/php_hash_sha.h" | 7 | #include "ext/hash/php_hash_sha.h" |
| 8 | #include "ext/standard/base64.h" | 8 | #include "ext/standard/base64.h" |
| 9 | 9 | ||
| 10 | void hook_session(); | 10 | void hook_session(void); |
diff --git a/src/sp_sloppy.h b/src/sp_sloppy.h index c01b77c..cd9f304 100644 --- a/src/sp_sloppy.h +++ b/src/sp_sloppy.h | |||
| @@ -3,6 +3,6 @@ | |||
| 3 | #include "php_snuffleupagus.h" | 3 | #include "php_snuffleupagus.h" |
| 4 | #include "zend_vm.h" | 4 | #include "zend_vm.h" |
| 5 | 5 | ||
| 6 | void hook_sloppy(); | 6 | void hook_sloppy(void); |
| 7 | 7 | ||
| 8 | #endif | 8 | #endif |
diff --git a/src/sp_tree.h b/src/sp_tree.h index d29d095..2659d56 100644 --- a/src/sp_tree.h +++ b/src/sp_tree.h | |||
| @@ -21,7 +21,7 @@ typedef struct parser_s { | |||
| 21 | struct parser_s *next; | 21 | struct parser_s *next; |
| 22 | } sp_tree; | 22 | } sp_tree; |
| 23 | 23 | ||
| 24 | sp_tree *sp_tree_new(); | 24 | sp_tree *sp_tree_new(void); |
| 25 | void sp_tree_free(sp_tree *); | 25 | void sp_tree_free(sp_tree *); |
| 26 | 26 | ||
| 27 | #endif | 27 | #endif |
diff --git a/src/sp_upload_validation.h b/src/sp_upload_validation.h index 53790fd..1b239a0 100644 --- a/src/sp_upload_validation.h +++ b/src/sp_upload_validation.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #ifndef __SP_UPLOAD_VALIDATION_H__ | 1 | #ifndef __SP_UPLOAD_VALIDATION_H__ |
| 2 | #define __SP_UPLOAD_VALIDATION_H__ | 2 | #define __SP_UPLOAD_VALIDATION_H__ |
| 3 | 3 | ||
| 4 | void hook_upload(); | 4 | void hook_upload(void); |
| 5 | 5 | ||
| 6 | #endif | 6 | #endif |
diff --git a/src/sp_utils.h b/src/sp_utils.h index 744bbff..24571ee 100644 --- a/src/sp_utils.h +++ b/src/sp_utils.h | |||
| @@ -53,7 +53,7 @@ | |||
| 53 | 53 | ||
| 54 | #define GET_SUFFIX(x) (x == 1) ? "st" : ((x == 2) ? "nd" : "th") | 54 | #define GET_SUFFIX(x) (x == 1) ? "st" : ((x == 2) ? "nd" : "th") |
| 55 | 55 | ||
| 56 | const char *get_ipaddr(); | 56 | const char *get_ipaddr(void); |
| 57 | void sp_log_msgf(char const *restrict feature, int level, int type, | 57 | void sp_log_msgf(char const *restrict feature, int level, int type, |
| 58 | const char *restrict fmt, ...); | 58 | const char *restrict fmt, ...); |
| 59 | int compute_hash(const char *const restrict filename, char *restrict file_hash); | 59 | int compute_hash(const char *const restrict filename, char *restrict file_hash); |
diff --git a/src/sp_wrapper.h b/src/sp_wrapper.h index f57513a..c4b17e0 100644 --- a/src/sp_wrapper.h +++ b/src/sp_wrapper.h | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | #define SP_WRAPPER_H | 2 | #define SP_WRAPPER_H |
| 3 | #include "php_snuffleupagus.h" | 3 | #include "php_snuffleupagus.h" |
| 4 | 4 | ||
| 5 | void sp_disable_wrapper(); | 5 | void sp_disable_wrapper(void); |
| 6 | int hook_stream_wrappers(); | 6 | int hook_stream_wrappers(void); |
| 7 | 7 | ||
| 8 | #endif | 8 | #endif |
