From: Ruben Kerkhof Date: Mon, 14 May 2018 21:38:09 +0000 (+0200) Subject: collectdmon: remove unneccesary cast X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=86d2e36f6c6b1b9c7c43cb72e4bcc50eb9a9dc54;p=collectd.git collectdmon: remove unneccesary cast --- diff --git a/src/collectdmon.c b/src/collectdmon.c index 089e52b6..33ba5554 100644 --- a/src/collectdmon.c +++ b/src/collectdmon.c @@ -304,7 +304,7 @@ int main(int argc, char **argv) { /* i < argc => -f already present */ collectd_argc = 1 + argc - optind + ((i < argc) ? 0 : 1); - collectd_argv = (char **)calloc(collectd_argc + 1, sizeof(char *)); + collectd_argv = calloc(collectd_argc + 1, sizeof(char *)); if (NULL == collectd_argv) { fprintf(stderr, "Out of memory.");