va_list style tweaks

This commit is contained in:
obrien 2005-02-16 06:48:35 +00:00
parent 46932c7f70
commit 3999e04217

View File

@ -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);