projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hugepages: rework
[collectd.git]
/
src
/
bind.c
diff --git
a/src/bind.c
b/src/bind.c
index
e6855d2
..
7d26208
100644
(file)
--- a/
src/bind.c
+++ b/
src/bind.c
@@
-284,7
+284,7
@@
static size_t bind_curl_callback (void *buf, size_t size, /* {{{ */
{
char *temp;
{
char *temp;
- temp = realloc(bind_buffer, bind_buffer_fill + len + 1);
+ temp = realloc
(bind_buffer, bind_buffer_fill + len + 1);
if (temp == NULL)
{
ERROR ("bind plugin: realloc failed.");
if (temp == NULL)
{
ERROR ("bind plugin: realloc failed.");
@@
-1613,7
+1613,7
@@
static int bind_config_add_view_zone (cb_view_t *view, /* {{{ */
return (-1);
}
return (-1);
}
- tmp =
(char **)
realloc (view->zones,
+ tmp = realloc (view->zones,
sizeof (char *) * (view->zones_num + 1));
if (tmp == NULL)
{
sizeof (char *) * (view->zones_num + 1));
if (tmp == NULL)
{
@@
-1644,7
+1644,7
@@
static int bind_config_add_view (oconfig_item_t *ci) /* {{{ */
return (-1);
}
return (-1);
}
- tmp =
(cb_view_t *)
realloc (views, sizeof (*views) * (views_num + 1));
+ tmp = realloc (views, sizeof (*views) * (views_num + 1));
if (tmp == NULL)
{
ERROR ("bind plugin: realloc failed.");
if (tmp == NULL)
{
ERROR ("bind plugin: realloc failed.");