diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-14 22:13:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-14 22:13:04 +0000 |
commit | 4e181d2dc9e75b34c5bb5e29f895073988b52a6a (patch) | |
tree | 7c83dd9d3bbe5605ebc60db3d3c10c82fccb5a41 /sbin/brconfig/brconfig.c | |
parent | 7d3c8976f9ee5c5741d292c48f39db424b00db59 (diff) |
remove unused variable
Diffstat (limited to 'sbin/brconfig/brconfig.c')
-rw-r--r-- | sbin/brconfig/brconfig.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/brconfig/brconfig.c b/sbin/brconfig/brconfig.c index d2aabbf611d..c73424b5062 100644 --- a/sbin/brconfig/brconfig.c +++ b/sbin/brconfig/brconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: brconfig.c,v 1.32 2004/05/27 07:41:58 otto Exp $ */ +/* $OpenBSD: brconfig.c,v 1.33 2004/09/14 22:13:03 deraadt Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -1113,7 +1113,7 @@ bridge_rules(int s, char *brdg, char *ifname, char *delim) { char *inbuf = NULL, *inb; struct ifbrlconf ifc; - struct ifbrlreq *ifrp, ifreq; + struct ifbrlreq *ifrp; int len = 8192, i; while (1) { @@ -1126,12 +1126,12 @@ bridge_rules(int s, char *brdg, char *ifname, char *delim) strlcpy(ifc.ifbrl_ifsname, ifname, sizeof(ifc.ifbrl_ifsname)); if (ioctl(s, SIOCBRDGGRL, &ifc) < 0) err(1, "ioctl(SIOCBRDGGRL)"); - if (ifc.ifbrl_len + sizeof(ifreq) < len) + if (ifc.ifbrl_len + sizeof(*ifrp) < len) break; len *= 2; } ifrp = ifc.ifbrl_req; - for (i = 0; i < ifc.ifbrl_len; i += sizeof(ifreq)) { + for (i = 0; i < ifc.ifbrl_len; i += sizeof(*ifrp)) { ifrp = (struct ifbrlreq *)((caddr_t)ifc.ifbrl_req + i); bridge_showrule(ifrp, delim); } |