Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sgimips/stand/common Add missing va_list, from Davi...



details:   https://anonhg.NetBSD.org/src/rev/b7484436ecac
branches:  trunk
changeset: 813702:b7484436ecac
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Feb 14 18:09:51 2016 +0000

description:
Add missing va_list, from David Binderman in PR 50796.

XXX: this file and arch/arc/stand/boot/disk.c are cutpaste clones.

diffstat:

 sys/arch/sgimips/stand/common/disk.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 75246f955cdc -r b7484436ecac sys/arch/sgimips/stand/common/disk.c
--- a/sys/arch/sgimips/stand/common/disk.c      Sun Feb 14 18:07:49 2016 +0000
+++ b/sys/arch/sgimips/stand/common/disk.c      Sun Feb 14 18:09:51 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disk.c,v 1.11 2011/07/17 20:54:47 joerg Exp $  */
+/*     $NetBSD: disk.c,v 1.12 2016/02/14 18:09:51 dholland Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -112,8 +112,8 @@
        va_list ap;
 
        va_start(ap, f);
-
        device = va_arg(ap, char *);
+       va_end(ap);
 
        /*
         * For NetBSD/sgimips, since we use the SGI partition map directly,



Home | Main Index | Thread Index | Old Index