projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b7bd79
)
collectdmon: remove unneccesary cast
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Mon, 14 May 2018 21:38:09 +0000
(23:38 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Mon, 14 May 2018 21:38:09 +0000
(23:38 +0200)
src/collectdmon.c
patch
|
blob
|
history
diff --git
a/src/collectdmon.c
b/src/collectdmon.c
index
089e52b
..
33ba555
100644
(file)
--- 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.");