projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1743 from rubenk/apcups-coverity
[collectd.git]
/
src
/
nginx.c
diff --git
a/src/nginx.c
b/src/nginx.c
index
4e4ce3b
..
7587c1f
100644
(file)
--- a/
src/nginx.c
+++ b/
src/nginx.c
@@
-71,7
+71,7
@@
static size_t nginx_curl_callback (void *buf, size_t size, size_t nmemb,
len = (sizeof (nginx_buffer) - 1) - nginx_buffer_len;
}
len = (sizeof (nginx_buffer) - 1) - nginx_buffer_len;
}
- if (len
<
= 0)
+ if (len
=
= 0)
return (len);
memcpy (&nginx_buffer[nginx_buffer_len], buf, len);
return (len);
memcpy (&nginx_buffer[nginx_buffer_len], buf, len);
@@
-188,15
+188,14
@@
static int init (void)
}
else
{
}
else
{
- curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS,
- CDTIME_T_TO_MS(plugin_get_interval()));
+ curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, (long) CDTIME_T_TO_MS(plugin_get_interval()));
}
#endif
return (0);
} /* void init */
}
#endif
return (0);
} /* void init */
-static void submit (c
har *type,
char *inst, long long value)
+static void submit (c
onst char *type, const
char *inst, long long value)
{
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
{
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;