va_list style tweaks
This commit is contained in:
parent
8e325e2991
commit
c82b8ff04f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141965
@ -240,9 +240,9 @@ msg(const char *fmt, ...)
|
|||||||
#endif
|
#endif
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
(void) vfprintf(stderr, fmt, ap);
|
(void) vfprintf(stderr, fmt, ap);
|
||||||
|
va_end(ap);
|
||||||
(void) fflush(stdout);
|
(void) fflush(stdout);
|
||||||
(void) fflush(stderr);
|
(void) fflush(stderr);
|
||||||
va_end(ap);
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
(void) vsnprintf(lastmsg, sizeof(lastmsg), fmt, ap);
|
(void) vsnprintf(lastmsg, sizeof(lastmsg), fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
@ -252,6 +252,7 @@ void
|
|||||||
msgtail(const char *fmt, ...)
|
msgtail(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
(void) vfprintf(stderr, fmt, ap);
|
(void) vfprintf(stderr, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
Loading…
Reference in New Issue
Block a user