X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnotify_email.c;h=c7fe79eaf6ffe2059018bf4b810b15fd3923b81c;hb=4103105fb43cd72294f165b2541540b3a8a99532;hp=6843987cbf34b0f4f986846f051e954090b95643;hpb=10b10a6718dbb87c6890d4bc821a6e21c8b7b527;p=collectd.git diff --git a/src/notify_email.c b/src/notify_email.c index 6843987c..c7fe79ea 100644 --- a/src/notify_email.c +++ b/src/notify_email.c @@ -23,12 +23,12 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" #include #include -#include #define MAXSTRING 256 @@ -176,7 +176,7 @@ static int notify_email_config (const char *key, const char *value) { char **tmp; - tmp = (char **) realloc ((void *) recipients, (recipients_len + 1) * sizeof (char *)); + tmp = realloc (recipients, (recipients_len + 1) * sizeof (char *)); if (tmp == NULL) { ERROR ("notify_email: realloc failed."); return (-1);