From: Stelian Pop Date: Mon, 18 Oct 1999 09:47:58 +0000 (+0000) Subject: Patch va_start/va_end for linux-ppc X-Git-Tag: release_0_4b8~5 X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=commitdiff_plain;h=3072400e170260407c3739f5c2255136f3e55a04 Patch va_start/va_end for linux-ppc --- diff --git a/CHANGES b/CHANGES index 78e5758..32248b4 100644 --- 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 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 9b9dd7f..e22e277 100644 --- 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 diff --git a/dump/optr.c b/dump/optr.c index b17cd55..41aa20e 100644 --- a/dump/optr.c +++ b/dump/optr.c @@ -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 @@ -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); }