summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-11-30 19:26:06 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-11-30 19:26:06 +0300
commit4dce4df79683f5562d557ef80f8e2a648aacf5e8 (patch)
tree411bbc76c26b974340047d854d51bbc42f331e0e /src/util.h
parent569df8dd24eb159b069ca7f5efa6a6ba3336d63d (diff)
downloadrspamd-4dce4df79683f5562d557ef80f8e2a648aacf5e8.tar.gz
rspamd-4dce4df79683f5562d557ef80f8e2a648aacf5e8.zip
* Adopt printf function from nginx for comfortable printing of some data types (fixed strings, pids etc)
* Fix work of http maps (they were broken in some places before) * Fix sync of statfiles (not fully tested yet)
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 4d8955351..6c14d7469 100644
--- a/src/util.h
+++ b/src/util.h
@@ -89,4 +89,8 @@ stat_file_t* get_statfile_by_symbol (statfile_pool_t *pool, struct classifier_co
const char *symbol, struct statfile **st, gboolean try_create);
#endif
+int rspamd_sprintf (u_char *buf, const char *fmt, ...);
+int rspamd_snprintf (u_char *buf, size_t max, const char *fmt, ...);
+u_char *rspamd_vsnprintf (u_char *buf, size_t max, const char *fmt, va_list args);
+
#endif