projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3748823
)
write_http plugin: remove unnecessary cast
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 1 Apr 2016 16:37:19 +0000
(18:37 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 1 Apr 2016 16:37:19 +0000
(18:37 +0200)
src/write_http.c
patch
|
blob
|
history
diff --git
a/src/write_http.c
b/src/write_http.c
index
14ce0ec
..
c817749
100644
(file)
--- a/
src/write_http.c
+++ b/
src/write_http.c
@@
-183,7
+183,7
@@
static int wh_callback_init (wh_callback_t *cb) /* {{{ */
if (cb->pass != NULL)
credentials_size += strlen (cb->pass);
- cb->credentials =
(char *)
malloc (credentials_size);
+ cb->credentials = malloc (credentials_size);
if (cb->credentials == NULL)
{
ERROR ("curl plugin: malloc failed.");