info: use AUTOBUFCHUNK instead of hard-coding it
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 7 Apr 2016 17:32:23 +0000 (19:32 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 7 Apr 2016 19:17:02 +0000 (21:17 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/info/olsrd_info.c

index 98ce2e7..770c9b8 100644 (file)
@@ -78,7 +78,7 @@ typedef struct {
   int count;
 } info_plugin_outbuffer_t;
 
-static char sink_buffer[4096];
+static char sink_buffer[AUTOBUFCHUNK];
 
 static const char * name = NULL;
 
@@ -328,7 +328,7 @@ static void send_info(const char * req, unsigned int send_what, int the_socket,
   int contentLengthIndex = 0;
   int headerLength = 0;
 
-  abuf_init(&abuf, 2 * 4096);
+  abuf_init(&abuf, 2 * AUTOBUFCHUNK);
 
   if (config->http_headers) {
     http_header_build(name, status, content_type, &abuf, &contentLengthIndex);