info: write_data: do not move buffers around
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 2 Dec 2015 12:09:58 +0000 (13:09 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 2 Dec 2015 19:54:18 +0000 (20:54 +0100)
commitfda47424744396c5422b60d8ca9862ae939df111
tree5434809fa645ca8c4706a2e35cd18210ce5cb35d
parent79de8dec8b0673ffcf614aa80b672c81edae7902
info: write_data: do not move buffers around

Just loop over all output buffers. Much simpler and much more
memory efficient.

Also place the socket first in the output buffer struct for better
cache efficiency.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/info/olsrd_info.c