summaryrefslogtreecommitdiffstats
path: root/src/libutil/shingles.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-06 15:41:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-06 15:41:16 +0100
commitaac916db77b6ae58b7c0186d764e97a25482017c (patch)
tree52d58a063d790c699913116ee790b2a3019a6615 /src/libutil/shingles.c
parentc7f92da47dcb17393132b713f75a4dbd41629819 (diff)
downloadrspamd-aac916db77b6ae58b7c0186d764e97a25482017c.tar.gz
rspamd-aac916db77b6ae58b7c0186d764e97a25482017c.zip
Start miration to the new strings.
Diffstat (limited to 'src/libutil/shingles.c')
-rw-r--r--src/libutil/shingles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/shingles.c b/src/libutil/shingles.c
index 776ecfa96..e3bcc0f10 100644
--- a/src/libutil/shingles.c
+++ b/src/libutil/shingles.c
@@ -41,7 +41,7 @@ rspamd_shingles_generate (GArray *input,
guchar shabuf[BLAKE2B_OUTBYTES], *out_key;
const guchar *cur_key;
GString *row;
- rspamd_fstring_t *word;
+ rspamd_ftok_t *word;
blake2b_state bs;
guint64 val;
gint i, j, beg = 0;
@@ -84,7 +84,7 @@ rspamd_shingles_generate (GArray *input,
for (i = 0; i <= (gint)input->len; i ++) {
if (i - beg >= SHINGLES_WINDOW || i == (gint)input->len) {
for (j = beg; j < i; j ++) {
- word = &g_array_index (input, rspamd_fstring_t, j);
+ word = &g_array_index (input, rspamd_ftok_t, j);
g_string_append_len (row, word->begin, word->len);
}
beg++;