From 7ba8cf9d19aee3b7bf83d151859d0bbab3e81af6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 16 Dec 2016 17:59:15 +0000 Subject: [PATCH] [Rework|Minor] Fix utils --- utils/content_type_bench.c | 1 + utils/mime_tool.c | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/content_type_bench.c b/utils/content_type_bench.c index b6c067c790..634476b64c 100644 --- a/utils/content_type_bench.c +++ b/utils/content_type_bench.c @@ -19,6 +19,7 @@ #include "message.h" #include "util.h" #include "content_type.h" +#include static gdouble total_time = 0; static gint total_parsed = 0; diff --git a/utils/mime_tool.c b/utils/mime_tool.c index acaf34130f..6b3fbccda7 100644 --- a/utils/mime_tool.c +++ b/utils/mime_tool.c @@ -22,6 +22,7 @@ #include "task.h" #include "mime_parser.h" #include "unix-std.h" +#include #define MODE_NORMAL 0 #define MODE_GMIME 1 @@ -49,9 +50,9 @@ rspamd_show_multipart (struct rspamd_mime_part *part) part->parent_part, &part->ct->type, &part->ct->subtype); - if (part->children) { - for (i = 0; i < part->children->len; i ++) { - cur = g_ptr_array_index (part->children, i); + if (part->specific.mp.children) { + for (i = 0; i < part->specific.mp.children->len; i ++) { + cur = g_ptr_array_index (part->specific.mp.children, i); if (i != 0) { rspamd_printf (", %p{%T/%T}", cur, -- 2.47.3