appease gcc -Wuninitialized

This commit is contained in:
lukem 2005-06-02 09:42:57 +00:00
parent 14e2784ec2
commit 1fab072e48
3 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: syslogd.c,v 1.75 2005/01/09 00:07:27 christos Exp $ */
/* $NetBSD: syslogd.c,v 1.76 2005/06/02 09:42:57 lukem Exp $ */
/*
* Copyright (c) 1983, 1988, 1993, 1994
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
#else
__RCSID("$NetBSD: syslogd.c,v 1.75 2005/01/09 00:07:27 christos Exp $");
__RCSID("$NetBSD: syslogd.c,v 1.76 2005/06/02 09:42:57 lukem Exp $");
#endif
#endif /* not lint */
@ -1176,6 +1176,7 @@ fprintlog(struct filed *f, int flags, char *msg)
if (l > MAXLINE)
l = MAXLINE;
if (finet) {
lsent = -1;
for (r = f->f_un.f_forw.f_addr; r; r = r->ai_next) {
for (j = 0; j < *finet; j++) {
#if 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: trpt.c,v 1.19 2005/02/06 05:00:46 perry Exp $ */
/* $NetBSD: trpt.c,v 1.20 2005/06/02 09:44:41 lukem Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -77,7 +77,7 @@ __COPYRIGHT(
#if 0
static char sccsid[] = "@(#)trpt.c 8.1 (Berkeley) 6/6/93";
#else
__RCSID("$NetBSD: trpt.c,v 1.19 2005/02/06 05:00:46 perry Exp $");
__RCSID("$NetBSD: trpt.c,v 1.20 2005/06/02 09:44:41 lukem Exp $");
#endif
#endif /* not lint */
@ -384,6 +384,8 @@ tcp_trace(short act, short ostate, struct tcpcb *atp, struct tcpcb *tp,
#endif
char hbuf[MAXHOSTNAMELEN];
len = 0; /* XXXGCC -Wuninitialized */
switch (family) {
case AF_INET:
if (packet) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: vnconfig.c,v 1.31 2004/04/21 01:05:48 christos Exp $ */
/* $NetBSD: vnconfig.c,v 1.32 2005/06/02 09:45:35 lukem Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -231,6 +231,8 @@ main(argc, argv)
struct statvfs *mnt = NULL;
int i, n;
n = 0; /* XXXGCC -Wuninitialized */
printf("vnd%d: ", vnu.vnu_unit);
dev = devname(vnu.vnu_dev, S_IFBLK);