chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
60a837d
)
Track @lbuf@ and @dstr_vputf@ changes in mLib.
author
mdw
<mdw>
Sun, 13 Jan 2002 14:57:33 +0000
(14:57 +0000)
committer
mdw
<mdw>
Sun, 13 Jan 2002 14:57:33 +0000
(14:57 +0000)
admin.c
patch
|
blob
|
blame
|
history
diff --git
a/admin.c
b/admin.c
index 4571b6628aed249c2cfaec5698b026f870defaee..95e0e7cce7e4a51fc78396aa7890defb4844eb5b 100644
(file)
--- a/
admin.c
+++ b/
admin.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-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
*
*
* Admin interface for configuration
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: admin.c,v $
/*----- 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.
*
* 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);
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);
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
/* --- @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: ---
* @void *vp@ = pointer to my admin block
*
* Returns: ---
@@
-804,7
+808,7
@@
static void a_destroy(admin *a)
* Use: Handles a line of input.
*/
* 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;
{
admin *a = vp;
const acmd *c;