Drag into the 21st century.
[sw-tools] / src / sw_rsh.c
index fc6a6be..785da7d 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: sw_rsh.c,v 1.6 1999/09/24 13:15:57 mdw Exp $
+ * $Id$
  *
  * Run remote commands
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: sw_rsh.c,v $
- * Revision 1.6  1999/09/24 13:15:57  mdw
- * Remove unnecessary assumptions about structure layouts.  (The `pkhead'
- * structure is no more.)
- *
- * Revision 1.5  1999/06/24 16:02:22  mdw
- * Fix signal handling some more.
- *
- * Revision 1.4  1999/06/24 15:51:17  mdw
- * Fix signal handlers so they don't corrupt `errno'.
- *
- * Revision 1.3  1999/06/18 18:58:54  mdw
- * Signal handling fixes.
- *
- * Revision 1.2  1999/06/02 17:03:29  mdw
- * Fix use of `octet' now that mLib includes `bits.h' (as of version 1.3.5
- * release).  Also use the mLib load and store macros rather than doing it
- * by hand.
- *
- * Revision 1.1.1.1  1999/06/02  16:53:34  mdw
- * Initial import.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include "config.h"
@@ -112,7 +86,7 @@ static rcmd *rcmds = RCMD_LINK;
  * Returns:    Zero if it worked, nonzero otherwise.
  *
  * Use:                Sends a data packet.  If the type is `data', then `sz' may be
- *             arbitrarily large and is divided into small eenough chunks.
+ *             arbitrarily large and is divided into small enough chunks.
  *             Otherwise it's an error to send a packet that's too big.
  */
 
@@ -339,7 +313,7 @@ void swwait(sw_remote *r, int status)
 void swvprintf(sw_remote *r, const char *format, va_list ap)
 {
   dstr d = DSTR_INIT;
-  dstr_vputf(&d, format, ap);
+  dstr_vputf(&d, format, &ap);
   pksend(r, PKTYPE_DATA, d.buf, d.len);
   dstr_destroy(&d);
 }
@@ -382,7 +356,7 @@ void swdie(sw_remote *r, int status, const char *format, ...)
 
   va_start(ap, format);
   dstr_putf(&d, "%s [remote]: ", QUIS);
-  dstr_vputf(&d, format, ap);
+  dstr_vputf(&d, format, &ap);
   dstr_putc(&d, '\n');
   dstr_putz(&d);
   va_end(ap);