Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/netstat Drop assignment from uninitialized and other...
details: https://anonhg.NetBSD.org/src/rev/aff359d514e1
branches: trunk
changeset: 808877:aff359d514e1
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Jun 06 13:08:31 2015 +0000
description:
Drop assignment from uninitialized and otherwise unused variable.
diffstat:
usr.bin/netstat/atalk.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 7b84e2f8b32b -r aff359d514e1 usr.bin/netstat/atalk.c
--- a/usr.bin/netstat/atalk.c Sat Jun 06 07:44:22 2015 +0000
+++ b/usr.bin/netstat/atalk.c Sat Jun 06 13:08:31 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atalk.c,v 1.15 2013/10/18 20:26:45 christos Exp $ */
+/* $NetBSD: atalk.c,v 1.16 2015/06/06 13:08:31 joerg Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from @(#)atalk.c 1.1 (Whistle) 6/6/96";
#else
-__RCSID("$NetBSD: atalk.c,v 1.15 2013/10/18 20:26:45 christos Exp $");
+__RCSID("$NetBSD: atalk.c,v 1.16 2015/06/06 13:08:31 joerg Exp $");
#endif
#endif /* not lint */
@@ -229,7 +229,6 @@
void
atalkprotopr(u_long off, const char *name)
{
- struct ddpcb cb;
struct ddpcb *next;
struct ddpcb *initial;
int width = 22;
@@ -237,7 +236,6 @@
return;
if (kread(off, (char *)&initial, sizeof(struct ddpcb *)) < 0)
return;
- ddpcb = cb;
for (next = initial; next != NULL;) {
u_long ppcb = (u_long)next;
Home |
Main Index |
Thread Index |
Old Index