projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_kafka: ensure key is properly hashed to select partition
[collectd.git]
/
src
/
write_http.c
diff --git
a/src/write_http.c
b/src/write_http.c
index
9a40511
..
779c94f
100644
(file)
--- a/
src/write_http.c
+++ b/
src/write_http.c
@@
-29,10
+29,6
@@
#include "utils_cache.h"
#include "utils_format_json.h"
#include "utils_cache.h"
#include "utils_format_json.h"
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
-
#include <curl/curl.h>
#ifndef WRITE_HTTP_DEFAULT_BUFFER_SIZE
#include <curl/curl.h>
#ifndef WRITE_HTTP_DEFAULT_BUFFER_SIZE
@@
-240,7
+236,7
@@
static int wh_flush_nolock (cdtime_t timeout, wh_callback_t *cb) /* {{{ */
if (cb->format == WH_FORMAT_COMMAND)
{
if (cb->format == WH_FORMAT_COMMAND)
{
- if (cb->send_buffer_fill
<
= 0)
+ if (cb->send_buffer_fill
=
= 0)
{
cb->send_buffer_init_time = cdtime ();
return (0);
{
cb->send_buffer_init_time = cdtime ();
return (0);