projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
all plugins: remove pthread.h include
[collectd.git]
/
src
/
curl.c
diff --git
a/src/curl.c
b/src/curl.c
index
2ed0922
..
7f298a2
100644
(file)
--- a/
src/curl.c
+++ b/
src/curl.c
@@
-108,7
+108,7
@@
static size_t cc_curl_callback (void *buf, /* {{{ */
size_t temp_size;
temp_size = wp->buffer_fill + len + 1;
size_t temp_size;
temp_size = wp->buffer_fill + len + 1;
- temp =
(char *)
realloc (wp->buffer, temp_size);
+ temp = realloc (wp->buffer, temp_size);
if (temp == NULL)
{
ERROR ("curl plugin: realloc failed.");
if (temp == NULL)
{
ERROR ("curl plugin: realloc failed.");
@@
-543,7
+543,7
@@
static int cc_config_add_page (oconfig_item_t *ci) /* {{{ */
web_page_t *prev;
prev = pages_g;
web_page_t *prev;
prev = pages_g;
- while (
(prev != NULL) && (prev->next != NULL)
)
+ while (
prev->next != NULL
)
prev = prev->next;
prev->next = page;
}
prev = prev->next;
prev->next = page;
}