}
}
+static void
+rspamd_u_text_dtor (void *p)
+{
+ utext_close ((UText *)p);
+}
+
static void
rspamd_normalize_text_part (struct rspamd_task *task,
struct rspamd_mime_text_part *part)
}
else {
rspamd_mempool_add_destructor (task->task_pool,
- (rspamd_mempool_destruct_t)utext_close,
+ rspamd_u_text_dtor,
&part->utf_stripped_text);
}
}
while (p < end && len > 0 && (err_offset = rspamd_fast_utf8_validate (p, len)) > 0) {
err_offset --; /* As it returns it 1 indexed */
- goffset cur_offset = err_offset;
+ gint32 cur_offset = err_offset;
while (cur_offset < len) {
- goffset tmp = cur_offset;
+ gint32 tmp = cur_offset;
U8_NEXT (p, cur_offset, len, uc);
spf_library_config (const ucl_object_t *obj)
{
const ucl_object_t *value;
- guint64 ival;
+ gint64 ival;
bool bval;
if (obj == NULL) {