Drag into the 21st century.
[sw-tools] / src / pres_plain.c
index 60a0793..449d2dd 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: pres_plain.c,v 1.2 1999/07/16 12:49:59 mdw Exp $
+ * $Id$
  *
  * Plain output style for remote builds
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: pres_plain.c,v $
- * Revision 1.2  1999/07/16 12:49:59  mdw
- * Improve exit status display.  New interface from `doto' project.
- *
- * Revision 1.1.1.1  1999/06/02 16:53:35  mdw
- * Initial import.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include <errno.h>
@@ -55,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)
@@ -90,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);
 }