X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnotify_email.c;h=0120a4039466e240c753ed3e7e2472995dec3335;hb=71bbf854d3e6f8c6d6c3582527263bb01a3a7e04;hp=6843987cbf34b0f4f986846f051e954090b95643;hpb=5841d1fb13436af787c748a965084cb06e66d326;p=collectd.git diff --git a/src/notify_email.c b/src/notify_email.c index 6843987c..0120a403 100644 --- a/src/notify_email.c +++ b/src/notify_email.c @@ -28,7 +28,6 @@ #include #include -#include #define MAXSTRING 256 @@ -176,7 +175,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);