summaryrefslogtreecommitdiff
path: root/src/sp_utils.h
diff options
context:
space:
mode:
authorjvoisin2020-07-04 17:56:03 +0200
committerjvoisin2020-07-04 17:56:03 +0200
commit08f21d8b878b6c1490e6d6bb3d44aa640a88e9ca (patch)
tree0b4b55a5c8d24d05408bf02bd244e78c130ba87d /src/sp_utils.h
parent6c7ad0c1dfcf324828be4153b86a808b35995820 (diff)
Factorize how snuffleupagus gets client's ip addr
Diffstat (limited to 'src/sp_utils.h')
-rw-r--r--src/sp_utils.h1
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
47const char* get_ipaddr();
47void sp_log_msg(char const *feature, int type, const char *fmt, ...); 48void sp_log_msg(char const *feature, int type, const char *fmt, ...);
48int compute_hash(const char *const filename, char *file_hash); 49int compute_hash(const char *const filename, char *file_hash);
49const zend_string *sp_zval_to_zend_string(const zval *); 50const zend_string *sp_zval_to_zend_string(const zval *);