aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/fstring.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-16 18:08:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-16 18:08:13 +0000
commit2fc53bab7cad105fca67f3d4b24e48001b7ea655 (patch)
treeaf587119e6918ebe63672366c15410e85e52666e /src/libutil/fstring.h
parent51a013a8981deb100e8c284776071cc43c8c8a2b (diff)
parent724346e65b1fe5552181c816596590c58331f0dc (diff)
downloadrspamd-2fc53bab7cad105fca67f3d4b24e48001b7ea655.tar.gz
rspamd-2fc53bab7cad105fca67f3d4b24e48001b7ea655.zip
Merge branch 'gmime-goodbye'
Diffstat (limited to 'src/libutil/fstring.h')
-rw-r--r--src/libutil/fstring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h
index e23bd5e19..c1b205817 100644
--- a/src/libutil/fstring.h
+++ b/src/libutil/fstring.h
@@ -177,4 +177,6 @@ gchar *rspamd_ftokdup (const rspamd_ftok_t *src) G_GNUC_WARN_UNUSED_RESULT;
* @return
*/
gchar *rspamd_fstringdup (const rspamd_fstring_t *src) G_GNUC_WARN_UNUSED_RESULT;
+
+#define RSPAMD_FTOK_ASSIGN(t, lit) do { (t)->begin = (lit); (t)->len = sizeof(lit) - 1; } while (0)
#endif