1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-26 07:55:01 +00:00

Remove redundant stuff. Amazing that they actually solved a bug found in

1.1.5.1, and oversaw this thang.
This commit is contained in:
Guido van Rooij 1994-11-10 18:49:23 +00:00
parent af39413d8c
commit b0dd7a6b99
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4345

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if.c 8.3 (Berkeley) 1/4/94
* $Id: if.c,v 1.8 1994/10/05 20:11:23 wollman Exp $
* $Id: if.c,v 1.9 1994/10/08 01:40:20 phk Exp $
*/
#include <sys/param.h>
@ -622,12 +622,10 @@ ifconf(cmd, data)
register struct ifconf *ifc = (struct ifconf *)data;
register struct ifnet *ifp = ifnet;
register struct ifaddr *ifa;
register char *ep;
struct ifreq ifr, *ifrp;
int space = ifc->ifc_len, error = 0;
ifrp = ifc->ifc_req;
ep = ifr.ifr_name + sizeof (ifr.ifr_name) - 2;
for (; space > sizeof (ifr) && ifp; ifp = ifp->if_next) {
char workbuf[12], *unitname;
int unitlen, ifnlen;