From 69f62b8724c7a77706ff3cb10cdc25ab70544404 Mon Sep 17 00:00:00 2001 From: Martynas Venckus Date: Wed, 15 Jul 2009 20:34:58 +0000 Subject: missing va_end in bios_printf & dioopen. ok miod@ --- sys/arch/sgi/stand/boot/diskio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/sgi/stand') 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); -- cgit v1.2.3