Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ndbootd appease gcc -Wuninitialized
details: https://anonhg.NetBSD.org/src/rev/cbffaf84d153
branches: trunk
changeset: 581535:cbffaf84d153
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jun 02 11:29:01 2005 +0000
description:
appease gcc -Wuninitialized
diffstat:
usr.sbin/ndbootd/ndbootd.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 97de8cd8fa72 -r cbffaf84d153 usr.sbin/ndbootd/ndbootd.c
--- a/usr.sbin/ndbootd/ndbootd.c Thu Jun 02 11:27:44 2005 +0000
+++ b/usr.sbin/ndbootd/ndbootd.c Thu Jun 02 11:29:01 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ndbootd.c,v 1.9 2005/06/02 11:27:44 lukem Exp $ */
+/* $NetBSD: ndbootd.c,v 1.10 2005/06/02 11:29:01 lukem Exp $ */
/* ndbootd.c - the Sun Network Disk (nd) daemon: */
@@ -81,7 +81,7 @@
#if 0
static const char _ndbootd_c_rcsid[] = "<<Id: ndbootd.c,v 1.9 2001/06/13 21:19:11 fredette Exp >>";
#else
-__RCSID("$NetBSD: ndbootd.c,v 1.9 2005/06/02 11:27:44 lukem Exp $");
+__RCSID("$NetBSD: ndbootd.c,v 1.10 2005/06/02 11:29:01 lukem Exp $");
#endif
/* includes: */
@@ -517,6 +517,10 @@
boot1_fd = -1;
boot2_file_name = NULL;
boot2_fd = -1;
+ boot1_block_count = 0; /* XXXGCC -Wuninitialized */
+ boot2_block_count = 0; /* XXXGCC -Wuninitialized */
+ boot1_byte_count = 0; /* XXXGCC -Wuninitialized */
+ boot2_byte_count = 0; /* XXXGCC -Wuninitialized */
/* loop processing packets: */
for (;;) {
Home |
Main Index |
Thread Index |
Old Index