]> git.wh0rd.org - dump.git/commitdiff
Patch va_start/va_end for linux-ppc
authorStelian Pop <stelian@popies.net>
Mon, 18 Oct 1999 09:47:58 +0000 (09:47 +0000)
committerStelian Pop <stelian@popies.net>
Mon, 18 Oct 1999 09:47:58 +0000 (09:47 +0000)
CHANGES
THANKS
dump/optr.c

diff --git a/CHANGES b/CHANGES
index 78e5758af29832e509729ea4da15e6bcc5d09878..32248b4937386faeb72e0682d41e77621ef42bfb 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,4 @@
-$Id: CHANGES,v 1.6 1999/10/13 09:57:12 stelian Exp $
+$Id: CHANGES,v 1.7 1999/10/18 09:47:58 tiniou Exp $
 
 Changes between versions 0.4b7 and 0.4b8 (released ???????????????)
 ===================================================================
@@ -9,6 +9,10 @@ Changes between versions 0.4b7 and 0.4b8 (released ???????????????)
 2.     Added the dump/restore version in the usage text so one can
        easily verify the version he is using.
 
+3.     Small patch from Nuno Oliveira <nuno@eq.uc.pt> which fixes
+       a va_start/va_end problem on linux-ppc (always call va_start
+       va_end in pairs each time we use a vararg function).
+
 Changes between versions 0.4b6 and 0.4b7 (released October 8, 1999)
 ===================================================================
 
diff --git a/THANKS b/THANKS
index 9b9dd7faa518ac9cf0f591eac88b1f72cd2a50db..e22e2776def2adbf092d77b0cb0f2d70be10262c 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -1,4 +1,4 @@
-$Id: THANKS,v 1.5 1999/10/11 13:31:04 stelian Exp $
+$Id: THANKS,v 1.6 1999/10/18 09:47:58 tiniou Exp $
 
 Dump and restore were written by the people of the CSRG at the University
 of California, Berkeley.
@@ -31,6 +31,7 @@ Greg Lutz             greglutz@ix.netcom.com
 David Miller           davem@caip.rutgers.edu
 David Monro            davidm@cs.su.oz.au
 Lukas Nellen           L.Nellen@ThPhys.Uni-Heidelberg.DE
+Nuno Oliveira          nuno@eq.uc.pt
 Brent Olson            night@halcyon.com
 Bob Snyder             rsnyder@janet.advsys.com
 Stephen Tweedie                sct@dcs.ed.ac.uk
index b17cd556bbf871ce97839e98201b36a33061cd9b..41aa20e4b3b6242c896859c67f83d6934995e7c8 100644 (file)
@@ -40,7 +40,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: optr.c,v 1.6 1999/10/13 09:57:20 stelian Exp $";
+       "$Id: optr.c,v 1.7 1999/10/18 09:48:00 tiniou Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -358,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);
 }