From 3008eabf0e88b1e1d54918fdfa8b2dc3c03e5ba1 Mon Sep 17 00:00:00 2001 Message-Id: <3008eabf0e88b1e1d54918fdfa8b2dc3c03e5ba1.1713970498.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 13 Jan 2002 14:57:33 +0000 Subject: [PATCH] Track @lbuf@ and @dstr_vputf@ changes in mLib. Organization: Straylight/Edgeware From: mdw --- admin.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/admin.c b/admin.c index 4571b662..95e0e7cc 100644 --- a/admin.c +++ b/admin.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: admin.c,v 1.6 2001/02/19 19:11:09 mdw Exp $ + * $Id: admin.c,v 1.7 2002/01/13 14:57:33 mdw Exp $ * * Admin interface for configuration * @@ -29,6 +29,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: admin.c,v $ + * Revision 1.7 2002/01/13 14:57:33 mdw + * Track @lbuf@ and @dstr_vputf@ changes in mLib. + * * Revision 1.6 2001/02/19 19:11:09 mdw * Output buffering on admin connections. * @@ -248,7 +251,7 @@ static void a_write(admin *a, const char *fmt, ...) va_list ap; dstr d = DSTR_INIT; va_start(ap, fmt); - dstr_vputf(&d, fmt, ap); + dstr_vputf(&d, fmt, &ap); va_end(ap); dosend(a, d.buf, d.len); dstr_destroy(&d); @@ -797,6 +800,7 @@ static void a_destroy(admin *a) /* --- @a_line@ --- * * * Arguments: @char *p@ = pointer to the line read + * @size_t len@ = length of the line * @void *vp@ = pointer to my admin block * * Returns: --- @@ -804,7 +808,7 @@ static void a_destroy(admin *a) * Use: Handles a line of input. */ -static void a_line(char *p, void *vp) +static void a_line(char *p, size_t len, void *vp) { admin *a = vp; const acmd *c; -- [mdw]