summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2002-01-03 19:28:37 +0000
committerjason <jason@openbsd.org>2002-01-03 19:28:37 +0000
commit2f188bf2523cbe82c295de31f8695c11505f696e (patch)
tree2408758a9825bd3c3e5d1479d4256e1b20296eaa /sys
parentadd sigreturn subdir (diff)
downloadwireguard-openbsd-2f188bf2523cbe82c295de31f8695c11505f696e.tar.xz
wireguard-openbsd-2f188bf2523cbe82c295de31f8695c11505f696e.zip
Proper va_end calling (no double calls)
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/macppc/opendev.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/arch/macppc/macppc/opendev.c b/sys/arch/macppc/macppc/opendev.c
index 431d82ed98b..95d7f83fddb 100644
--- a/sys/arch/macppc/macppc/opendev.c
+++ b/sys/arch/macppc/macppc/opendev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: opendev.c,v 1.2 2001/09/05 22:32:38 deraadt Exp $ */
+/* $OpenBSD: opendev.c,v 1.3 2002/01/03 19:28:37 jason Exp $ */
/* $NetBSD: openfirm.c,v 1.1 1996/09/30 16:34:52 ws Exp $ */
/*
@@ -185,14 +185,10 @@ OF_call_method_1(method, ihandle, nargs, va_alist)
*--ip = va_arg(ap, int);
va_end(ap);
ofw_stack();
- if (openfirmware(&args) == -1) {
- va_end(ap);
+ if (openfirmware(&args) == -1)
return -1;
- }
- if (args.args_n_results[nargs]) {
- va_end(ap);
+ if (args.args_n_results[nargs])
return -1;
- }
return args.args_n_results[nargs + 1];
}