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.
This commit is contained in:
Eric Blake
2009-10-14 04:17:05 +00:00
parent e4ba1cf29e
commit 4cd31fc8f9
6 changed files with 98 additions and 44 deletions

View File

@@ -584,8 +584,6 @@ _pinfo::commune_request (__uint32_t code, ...)
HANDLE request_sync = NULL;
bool locked = false;
va_start (args, code);
res.s = NULL;
res.n = 0;
@@ -595,6 +593,7 @@ _pinfo::commune_request (__uint32_t code, ...)
goto err;
}
va_start (args, code);
si._si_commune._si_code = code;
switch (code)
{
@@ -608,6 +607,7 @@ _pinfo::commune_request (__uint32_t code, ...)
break;
}
va_end (args);
locked = true;
char name_buf[MAX_PATH];