summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2005-05-26 03:39:57 +0000
committerhenning <henning@openbsd.org>2005-05-26 03:39:57 +0000
commitdb0de45211da2cccc7af806d9f95f646595066b9 (patch)
tree6f31603a9ed171e2dd1c01813a407e0d9829c8e8
parentNo need to clock i2s during i2c operations, so don't. Relocate i2c (diff)
downloadwireguard-openbsd-db0de45211da2cccc7af806d9f95f646595066b9.tar.xz
wireguard-openbsd-db0de45211da2cccc7af806d9f95f646595066b9.zip
remove hiding of interface family groups
-rw-r--r--sbin/ifconfig/ifconfig.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index eb44cad87dd..5e014c60f9d 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.141 2005/05/26 02:15:42 frantzen Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.142 2005/05/26 03:39:57 henning Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -3609,7 +3609,6 @@ void
getifgroups(void)
{
int len, cnt, n;
- char ifgroup[IFNAMSIZ];
struct ifgroupreq ifgr;
struct ifg_req *ifg;
@@ -3633,14 +3632,9 @@ getifgroups(void)
cnt = 0;
ifg = ifgr.ifgr_groups;
- for (n = 0; name[n] < '0' || name[n] > '9'; n++)
- continue;
- strlcpy(ifgroup, name, n + 1);
-
for (; ifg && len >= sizeof(struct ifg_req); ifg++) {
len -= sizeof(struct ifg_req);
- if (strcmp(ifg->ifgrq_group, "all") &&
- strcmp(ifg->ifgrq_group, ifgroup)) {
+ if (strcmp(ifg->ifgrq_group, "all")) {
if (cnt == 0)
printf("\tgroups: ");
cnt++;