MAJOR: chunks: replace struct chunk with struct buffer
Now all the code used to manipulate chunks uses a struct buffer instead.
The functions are still called "chunk*", and some of them will progressively
move to the generic buffer handling code as they are cleaned up.
diff --git a/src/cli.c b/src/cli.c
index 4440f25..0d3c95c 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -96,8 +96,8 @@
{
struct cli_kw_list *kw_list;
struct cli_kw *kw;
- struct chunk *tmp = get_trash_chunk();
- struct chunk out;
+ struct buffer *tmp = get_trash_chunk();
+ struct buffer out;
free(dynamic_usage_msg);
dynamic_usage_msg = NULL;
@@ -474,7 +474,7 @@
/* prepends then outputs the argument msg with a syslog-type severity depending on severity_output value */
static int cli_output_msg(struct channel *chn, const char *msg, int severity, int severity_output)
{
- struct chunk *tmp;
+ struct buffer *tmp;
if (likely(severity_output == CLI_SEVERITY_NONE))
return ci_putblk(chn, msg, strlen(msg));