ifconfig: remove unused variable
In printgroup() 'cnt' is set, but never read. Remove it. Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
8243e17463
commit
f5b204adf4
@ -114,7 +114,7 @@ printgroup(const char *groupname)
|
|||||||
{
|
{
|
||||||
struct ifgroupreq ifgr;
|
struct ifgroupreq ifgr;
|
||||||
struct ifg_req *ifg;
|
struct ifg_req *ifg;
|
||||||
int len, cnt = 0;
|
int len;
|
||||||
int s;
|
int s;
|
||||||
|
|
||||||
s = socket(AF_LOCAL, SOCK_DGRAM, 0);
|
s = socket(AF_LOCAL, SOCK_DGRAM, 0);
|
||||||
@ -140,7 +140,6 @@ printgroup(const char *groupname)
|
|||||||
ifg++) {
|
ifg++) {
|
||||||
len -= sizeof(struct ifg_req);
|
len -= sizeof(struct ifg_req);
|
||||||
printf("%s\n", ifg->ifgrq_member);
|
printf("%s\n", ifg->ifgrq_member);
|
||||||
cnt++;
|
|
||||||
}
|
}
|
||||||
free(ifgr.ifgr_groups);
|
free(ifgr.ifgr_groups);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user