From: Vsevolod Stakhov Date: Fri, 16 Dec 2016 17:59:15 +0000 (+0000) Subject: [Rework|Minor] Fix utils X-Git-Tag: 1.5.0~566^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ba8cf9d19aee3b7bf83d151859d0bbab3e81af6;p=thirdparty%2Frspamd.git [Rework|Minor] Fix utils --- 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,