summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-02 15:25:14 +0000
committerRoy Marples <roy@marples.name>2008-09-02 15:25:14 +0000
commitccf0a5f559a4cbe55e44b43861f02e73801b33cc (patch)
treed4b8f3ae1bb3d09cf090171fdae4292c680c850d /net.c
parent274abdf80bea6fb6babb3511ed4ee226ce18b8d2 (diff)
downloaddhcpcd-ccf0a5f559a4cbe55e44b43861f02e73801b33cc.tar.xz
Fix compile and wireless test on FreeBSD.
Diffstat (limited to 'net.c')
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index fecfe8c7..9f58c97b 100644
--- a/net.c
+++ b/net.c
@@ -267,7 +267,7 @@ init_interface(const char *ifname)
strlcpy(ireq.i_name, ifname, sizeof(ireq.i_name));
ireq.i_type = IEEE80211_IOC_NUMSSIDS;
ireq.i_val = 3;
- if ((x = ioctl(s, SIOCG80211, &ireq)) != -1)
+ if (ioctl(s, SIOCG80211, &ireq) != -1)
iface->metric += 100;
#endif