Source-Changes-HG archive

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

[src/trunk]: src/sbin/ccdconfig avoid initialization bug in vax gcc: int i; f...



details:   https://anonhg.NetBSD.org/src/rev/c25cb012e89c
branches:  trunk
changeset: 786597:c25cb012e89c
user:      christos <christos%NetBSD.org@localhost>
date:      Fri May 03 00:01:15 2013 +0000

description:
avoid initialization bug in vax gcc: int i; foo(&i);

diffstat:

 sbin/ccdconfig/ccdconfig.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3b2b02362f1a -r c25cb012e89c sbin/ccdconfig/ccdconfig.c
--- a/sbin/ccdconfig/ccdconfig.c        Thu May 02 23:13:12 2013 +0000
+++ b/sbin/ccdconfig/ccdconfig.c        Fri May 03 00:01:15 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ccdconfig.c,v 1.52 2013/04/27 17:12:36 christos Exp $  */
+/*     $NetBSD: ccdconfig.c,v 1.53 2013/05/03 00:01:15 christos Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1996, 1997\
  The NetBSD Foundation, Inc.  All rights reserved.");
-__RCSID("$NetBSD: ccdconfig.c,v 1.52 2013/04/27 17:12:36 christos Exp $");
+__RCSID("$NetBSD: ccdconfig.c,v 1.53 2013/05/03 00:01:15 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -532,7 +532,7 @@
 
        /* Dump ccd configuration to stdout. */
        while (argc) {
-               int i;
+               int i = 0;      /* XXX: vax gcc */
                int error;
                char *cp = *argv++; --argc;
                char *ccd;



Home | Main Index | Thread Index | Old Index