Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rpcbind Support MKINET6=no building after the -Wuni...



details:   https://anonhg.NetBSD.org/src/rev/f32208bd5086
branches:  trunk
changeset: 581860:f32208bd5086
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Jun 07 22:21:57 2005 +0000

description:
Support MKINET6=no building after the -Wuninitalized fix.
Noted by Jukka Salmi in email.

diffstat:

 usr.sbin/rpcbind/util.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r de84a57193d2 -r f32208bd5086 usr.sbin/rpcbind/util.c
--- a/usr.sbin/rpcbind/util.c   Tue Jun 07 22:02:48 2005 +0000
+++ b/usr.sbin/rpcbind/util.c   Tue Jun 07 22:21:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.10 2005/06/02 09:32:57 lukem Exp $  */
+/*     $NetBSD: util.c,v 1.11 2005/06/07 22:21:57 lukem Exp $  */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -122,7 +122,9 @@
        struct sockaddr *clnt = caller->buf;
        char *ret = NULL;
 
+#ifdef INET6
        servsin6 = ifsin6 = newsin6 = NULL;     /* XXXGCC -Wuninitialized */
+#endif
        servsin = newsin = NULL;                /* XXXGCC -Wuninitialized */
 
 #ifdef ND_DEBUG



Home | Main Index | Thread Index | Old Index