aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-15 11:58:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-15 14:46:01 +0000
commit99c6a57da476c6859c0f9352fe73e5109f7d8ab7 (patch)
tree31dba05161a764027da1fed7237446919e4129b8 /src/libutil/str_util.c
parent0da32cfb2f54fa73b02da40ccab3e806a2e94723 (diff)
downloadrspamd-99c6a57da476c6859c0f9352fe73e5109f7d8ab7.tar.gz
rspamd-99c6a57da476c6859c0f9352fe73e5109f7d8ab7.zip
[Minor] Make rspamd_memcspn public
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r--src/libutil/str_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index 63e22e641..c5df324b7 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -1828,13 +1828,13 @@ decode:
#define BITOP(a,b,op) \
((a)[(gsize)(b)/(8*sizeof *(a))] op (gsize)1<<((gsize)(b)%(8*sizeof *(a))))
-static gsize
+gsize
rspamd_memcspn (const gchar *s, const gchar *e, gsize len)
{
- gsize byteset[32/sizeof(gsize)];
+ gsize byteset[32 / sizeof(gsize)];
const gchar *p = s, *end = s + len;
- memset(byteset, 0, sizeof byteset);
+ memset (byteset, 0, sizeof byteset);
for (; *e && BITOP (byteset, *(guchar *)e, |=); e++);
for (; p < end && !BITOP (byteset, *(guchar *)p, &); p++);