Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin appease gcc -Wuninitialized
details: https://anonhg.NetBSD.org/src/rev/3d5f627c3e95
branches: trunk
changeset: 581486:3d5f627c3e95
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jun 02 03:11:23 2005 +0000
description:
appease gcc -Wuninitialized
diffstat:
usr.bin/tftp/tftp.c | 6 +++---
usr.bin/top/top.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (56 lines):
diff -r 4c03490023b2 -r 3d5f627c3e95 usr.bin/tftp/tftp.c
--- a/usr.bin/tftp/tftp.c Thu Jun 02 03:00:19 2005 +0000
+++ b/usr.bin/tftp/tftp.c Thu Jun 02 03:11:23 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tftp.c,v 1.20 2004/10/10 22:15:34 he Exp $ */
+/* $NetBSD: tftp.c,v 1.21 2005/06/02 03:11:23 lukem Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)tftp.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: tftp.c,v 1.20 2004/10/10 22:15:34 he Exp $");
+__RCSID("$NetBSD: tftp.c,v 1.21 2005/06/02 03:11:23 lukem Exp $");
#endif
#endif /* not lint */
@@ -541,7 +541,7 @@
{
static char *opcodes[] =
{ "#0", "RRQ", "WRQ", "DATA", "ACK", "ERROR", "OACK" };
- char *cp, *file, *endp, *opt, *spc;
+ char *cp, *file, *endp, *opt = NULL, *spc;
u_short op = ntohs(tp->th_opcode);
int i, o;
diff -r 4c03490023b2 -r 3d5f627c3e95 usr.bin/top/top.c
--- a/usr.bin/top/top.c Thu Jun 02 03:00:19 2005 +0000
+++ b/usr.bin/top/top.c Thu Jun 02 03:11:23 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: top.c,v 1.20 2004/07/23 13:31:50 wiz Exp $ */
+/* $NetBSD: top.c,v 1.21 2005/06/02 03:19:57 lukem Exp $ */
const char copyright[] = "Copyright (c) 1984 through 1996, William LeFebvre";
@@ -49,7 +49,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: top.c,v 1.20 2004/07/23 13:31:50 wiz Exp $");
+__RCSID("$NetBSD: top.c,v 1.21 2005/06/02 03:19:57 lukem Exp $");
#endif
#include "os.h"
@@ -133,8 +133,8 @@
char *env_top;
char **preset_argv;
int preset_argc = 0;
- char **av;
- int ac;
+ char **av = NULL;
+ int ac = 0;
char dostates = No;
char do_unames = Yes;
char interactive = Maybe;
Home |
Main Index |
Thread Index |
Old Index