Module Name: src Committed By: joerg Date: Thu Apr 23 00:23:31 UTC 2020
Modified Files: src/usr.bin/netstat: atalk.c Log Message: Avoid global scope for variables only used locally To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/usr.bin/netstat/atalk.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/netstat/atalk.c diff -u src/usr.bin/netstat/atalk.c:1.17 src/usr.bin/netstat/atalk.c:1.18 --- src/usr.bin/netstat/atalk.c:1.17 Sun Aug 18 04:14:40 2019 +++ src/usr.bin/netstat/atalk.c Thu Apr 23 00:23:31 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: atalk.c,v 1.17 2019/08/18 04:14:40 kamil Exp $ */ +/* $NetBSD: atalk.c,v 1.18 2020/04/23 00:23: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.17 2019/08/18 04:14:40 kamil Exp $"); +__RCSID("$NetBSD: atalk.c,v 1.18 2020/04/23 00:23:31 joerg Exp $"); #endif #endif /* not lint */ @@ -63,9 +63,6 @@ __RCSID("$NetBSD: atalk.c,v 1.17 2019/08 #include "netstat.h" #include "prog_ops.h" -struct ddpcb ddpcb; -struct socket sockb; - static int first = 1; /* @@ -230,6 +227,8 @@ atalk_print2(const struct sockaddr *sa, void atalkprotopr(u_long off, const char *name) { + struct ddpcb ddpcb; + struct socket sockb; struct ddpcb *next; struct ddpcb *initial; int width = 22;