chiark / gitweb /
Merge some changes from 1.0.4. Very odd.
[sw-tools] / src / sw_build.c
index 9a3026042dacda4bf990eac9a6b6f77ae36cb3ae..d8ec6ab1806373199f9b3625e8dccc5cd33d8b98 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: sw_build.c,v 1.5 2004/04/08 01:52:19 mdw Exp $
+ * $Id$
  *
  * Management of build processes
  *
@@ -37,6 +37,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <time.h>
 
 #include <sys/types.h>
 #include <sys/time.h>
@@ -486,7 +487,7 @@ static void putf(sw_remote *r, FILE *fp, 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);
   if (r)
     pksend(r, PKTYPE_DATA, d.buf, d.len);