diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-07-15 20:34:58 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-07-15 20:34:58 +0000 |
commit | 69f62b8724c7a77706ff3cb10cdc25ab70544404 (patch) | |
tree | 0a8c5a357df147fe9c38cd3d8697001f0353d349 | |
parent | 5982ddc6ed98967c73889e15576dc2a8f2c2e6d2 (diff) |
missing va_end in bios_printf & dioopen. ok miod@
-rw-r--r-- | sys/arch/mips64/mips64/arcbios.c | 3 | ||||
-rw-r--r-- | sys/arch/sgi/stand/boot/diskio.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/arcbios.c b/sys/arch/mips64/mips64/arcbios.c index 3a6830b6800..52ced29d12f 100644 --- a/sys/arch/mips64/mips64/arcbios.c +++ b/sys/arch/mips64/mips64/arcbios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arcbios.c,v 1.21 2009/05/16 16:40:31 miod Exp $ */ +/* $OpenBSD: arcbios.c,v 1.22 2009/07/15 20:34:57 martynas Exp $ */ /*- * Copyright (c) 1996 M. Warner Losh. All rights reserved. * Copyright (c) 1996-2004 Opsycon AB. All rights reserved. @@ -201,6 +201,7 @@ bios_printf(const char *fmt, ...) va_start(ap, fmt); vsnprintf(buf, sizeof(buf), fmt, ap); bios_putstring(buf); + va_end(ap); } /* diff --git a/sys/arch/sgi/stand/boot/diskio.c b/sys/arch/sgi/stand/boot/diskio.c index a136cd37630..749794be0e5 100644 --- a/sys/arch/sgi/stand/boot/diskio.c +++ b/sys/arch/sgi/stand/boot/diskio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diskio.c,v 1.4 2009/05/09 18:08:59 miod Exp $ */ +/* $OpenBSD: diskio.c,v 1.5 2009/07/15 20:34:57 martynas Exp $ */ /* * Copyright (c) 2000 Opsycon AB (www.opsycon.se) @@ -77,9 +77,10 @@ dioopen(struct open_file *f, ...) va_list ap; va_start(ap, f); - ctlr = va_arg(ap, char *); partition = va_arg(ap, int); + va_end(ap); + if (partition >= MAXPARTITIONS) return (ENXIO); |