From 3def7f64e44dd8fe9b1f10f4a979a5a8ed372360 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Wed, 17 Mar 1999 13:04:54 +0000 Subject: [PATCH] Avoid double open --- README | 2 +- netstat.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README b/README index cfd3f05..14073eb 100644 --- a/README +++ b/README @@ -45,7 +45,7 @@ Notable changes since 1.49 include: - netstat -s is improved. - route/netstat -r display the routing cache correctly. - plipconfig and slattach are included - - ipaddr and iptunnel are included (courtesy of Alexey Kuznetsov) + - ipmaddr and iptunnel are included (courtesy of Alexey Kuznetsov) - as ever, various bugs have been fixed Notable changes since 1.48 include: diff --git a/netstat.c b/netstat.c index 9d3f8e2..e3c9d50 100644 --- a/netstat.c +++ b/netstat.c @@ -6,7 +6,7 @@ * NET-3 Networking Distribution for the LINUX operating * system. * - * Version: $Id: netstat.c,v 1.22 1999/03/03 21:43:06 philip Exp $ + * Version: $Id: netstat.c,v 1.23 1999/03/17 13:04:57 philip Exp $ * * Authors: Fred Baumgarten, * Fred N. van Kempen, @@ -1139,7 +1139,7 @@ static int unix_info(void) #if HAVE_AFAX25 static int ax25_info(void) { - FILE *f = fopen(_PATH_PROCNET_AX25, "r"); + FILE *f; char buffer[256], buf[16]; char *src, *dst, *dev, *p; int st, vs, vr, sendq, recvq, ret; -- 2.7.4