]> git.wh0rd.org - dump.git/blobdiff - dump/optr.c
Fix in the return code of dump when using the size estimate option.
[dump.git] / dump / optr.c
index ab38a3d9217e7046597fd3385cf7452d25b1b1e5..41aa20e4b3b6242c896859c67f83d6934995e7c8 100644 (file)
@@ -2,8 +2,7 @@
  *     Ported to Linux's Second Extended File System as part of the
  *     dump and restore backup suit
  *     Remy Card <card@Linux.EU.Org>, 1994-1997
- *      Stelian Pop <pop@cybercable.fr>, 1999 
- *
+ *     Stelian Pop <pop@cybercable.fr>, 1999 
  */
 
 /*-
  */
 
 #ifndef lint
-#if 0
-static char sccsid[] = "@(#)optr.c     8.2 (Berkeley) 1/6/94";
-#endif
 static const char rcsid[] =
-       "$Id: optr.c,v 1.4 1999/10/11 13:08:08 stelian Exp $";
+       "$Id: optr.c,v 1.7 1999/10/18 09:48:00 tiniou Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -362,8 +358,14 @@ msg(fmt, va_alist)
        va_start(ap);
 #endif
        (void) vfprintf(stderr, fmt, ap);
+       va_end(ap);
        (void) fflush(stdout);
        (void) fflush(stderr);
+#ifdef __STDC__
+       va_start(ap, fmt);
+#else
+       va_start(ap);
+#endif
        (void) vsnprintf(lastmsg, sizeof(lastmsg), fmt, ap);
        va_end(ap);
 }