Move send buffer size to the top of the file
authorScott Sanders <scott@jssjr.com>
Sat, 1 Oct 2011 22:46:06 +0000 (18:46 -0400)
committerScott Sanders <scott@jssjr.com>
Sat, 1 Oct 2011 22:46:06 +0000 (18:46 -0400)
src/write_graphite.c

index 8090c8b..02ac696 100644 (file)
                         (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;