Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2009-10-14 08:17:05 +0400
committerEric Blake <eblake@redhat.com>2009-10-14 08:17:05 +0400
commit4cd31fc8f981c0287c9411e96a66520ce2568124 (patch)
treeb16143b3517dab481b72d2b3c90c5a56e1cd0d14 /winsup/cygwin/libc
parente4ba1cf29eaef305f8c6edd3f374c85af464bbea (diff)
Consistently use va_end.
* external.cc (cygwin_internal): Use va_end. * fork.cc (child_copy): Likewise. * libc/bsdlib.cc (warn, warnx, err, errx): Likewise. * pinfo.cc (commune_request): Likewise. * strace.cc (strace::prntf, strace_printf): Likewise.
Diffstat (limited to 'winsup/cygwin/libc')
-rw-r--r--winsup/cygwin/libc/bsdlib.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/libc/bsdlib.cc b/winsup/cygwin/libc/bsdlib.cc
index 92677d8ab..61797e43d 100644
--- a/winsup/cygwin/libc/bsdlib.cc
+++ b/winsup/cygwin/libc/bsdlib.cc
@@ -181,6 +181,7 @@ warn (const char *fmt, ...)
va_list ap;
va_start (ap, fmt);
vwarn (fmt, ap);
+ va_end (ap);
}
extern "C" void
@@ -189,6 +190,7 @@ warnx (const char *fmt, ...)
va_list ap;
va_start (ap, fmt);
vwarnx (fmt, ap);
+ va_end (ap);
}
extern "C" void
@@ -211,6 +213,7 @@ err (int eval, const char *fmt, ...)
va_list ap;
va_start (ap, fmt);
vwarn (fmt, ap);
+ va_end (ap);
exit (eval);
}
@@ -220,6 +223,7 @@ errx (int eval, const char *fmt, ...)
va_list ap;
va_start (ap, fmt);
vwarnx (fmt, ap);
+ va_end (ap);
exit (eval);
}