diff options
author | obrien <obrien@FreeBSD.org> | 2005-02-16 06:48:35 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2005-02-16 06:48:35 +0000 |
commit | 3999e042178c4e303b3559d351bd62729734ebef (patch) | |
tree | 4aeeb11273382a03d689b71b71f45485ac3d903b /sbin/dump | |
parent | 46932c7f70fea89e13a7703e23a7e3eaa1c8bb22 (diff) | |
download | FreeBSD-src-3999e042178c4e303b3559d351bd62729734ebef.zip FreeBSD-src-3999e042178c4e303b3559d351bd62729734ebef.tar.gz |
va_list style tweaks
Diffstat (limited to 'sbin/dump')
-rw-r--r-- | sbin/dump/optr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c index 3029dd3..3dc17b6 100644 --- a/sbin/dump/optr.c +++ b/sbin/dump/optr.c @@ -240,9 +240,9 @@ msg(const char *fmt, ...) #endif va_start(ap, fmt); (void) vfprintf(stderr, fmt, ap); + va_end(ap); (void) fflush(stdout); (void) fflush(stderr); - va_end(ap); va_start(ap, fmt); (void) vsnprintf(lastmsg, sizeof(lastmsg), fmt, ap); va_end(ap); @@ -252,6 +252,7 @@ void msgtail(const char *fmt, ...) { va_list ap; + va_start(ap, fmt); (void) vfprintf(stderr, fmt, ap); va_end(ap); |