From e2541dfbfe8c9d7ec75ccd128a4b2d3eeb462a30 Mon Sep 17 00:00:00 2001 From: Scott Sanders Date: Sat, 1 Oct 2011 18:46:06 -0400 Subject: [PATCH] Move send buffer size to the top of the file --- src/write_graphite.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/write_graphite.c b/src/write_graphite.c index 8090c8b3..02ac6964 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -56,6 +56,10 @@ (vl)->type, (vl)->type_instance, prefix, name) #endif +#ifndef WG_SEND_BUF_SIZE +#define WG_SEND_BUF_SIZE 4096 +#endif + /* * Private variables */ @@ -70,7 +74,7 @@ struct wg_callback int port; char *prefix; - char send_buf[4096]; + char send_buf[WG_SEND_BUF_SIZE]; size_t send_buf_free; size_t send_buf_fill; cdtime_t send_buf_init_time; -- 2.30.2