diff options
| author | jvoisin | 2020-07-04 17:56:03 +0200 |
|---|---|---|
| committer | jvoisin | 2020-07-04 17:56:03 +0200 |
| commit | 08f21d8b878b6c1490e6d6bb3d44aa640a88e9ca (patch) | |
| tree | 0b4b55a5c8d24d05408bf02bd244e78c130ba87d /src/sp_utils.h | |
| parent | 6c7ad0c1dfcf324828be4153b86a808b35995820 (diff) | |
Factorize how snuffleupagus gets client's ip addr
Diffstat (limited to '')
| -rw-r--r-- | src/sp_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sp_utils.h b/src/sp_utils.h index 200e82c..6fc59e5 100644 --- a/src/sp_utils.h +++ b/src/sp_utils.h | |||
| @@ -44,6 +44,7 @@ | |||
| 44 | 44 | ||
| 45 | #define GET_SUFFIX(x) (x == 1) ? "st" : ((x == 2) ? "nd" : "th") | 45 | #define GET_SUFFIX(x) (x == 1) ? "st" : ((x == 2) ? "nd" : "th") |
| 46 | 46 | ||
| 47 | const char* get_ipaddr(); | ||
| 47 | void sp_log_msg(char const *feature, int type, const char *fmt, ...); | 48 | void sp_log_msg(char const *feature, int type, const char *fmt, ...); |
| 48 | int compute_hash(const char *const filename, char *file_hash); | 49 | int compute_hash(const char *const filename, char *file_hash); |
| 49 | const zend_string *sp_zval_to_zend_string(const zval *); | 50 | const zend_string *sp_zval_to_zend_string(const zval *); |
