Drag into the 21st century.
[sw-tools] / src / pres_plain.c
index 9c1e275..449d2dd 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: pres_plain.c,v 1.3 2004/04/08 01:52:19 mdw Exp $
+ * $Id$
  *
  * Plain output style for remote builds
  *
@@ -44,7 +44,7 @@
 
 /* --- @line@ --- */
 
-static void line(char *s, void *p)
+static void line(char *s, size_t len, void *p)
 {
   archent *e = p;
   if (s)
@@ -79,6 +79,7 @@ void plain_output(archent *e, const char *p, size_t sz)
 void plain_close(archent *e, int ok, const char *summ)
 {
   lbuf_close(e->pres);
+  lbuf_destroy(e->pres);
   if (!ok)
     printf("%s: %s\n", e->arch, summ);
 }