summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-07-03 09:50:59 +0000
committerhrs <hrs@FreeBSD.org>2013-07-03 09:50:59 +0000
commit175de3296169e6480f853e2e9c8dc7686b28415c (patch)
treef0297ed502b5991bb034cbe79e661a90b65a52de /sbin/ifconfig
parent6732f8a6e3f077ae00d56d3e69b0f05b2e39a033 (diff)
downloadFreeBSD-src-175de3296169e6480f853e2e9c8dc7686b28415c.zip
FreeBSD-src-175de3296169e6480f853e2e9c8dc7686b28415c.tar.gz
Fix a typo (s/error/errno/).
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/af_nd6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/af_nd6.c b/sbin/ifconfig/af_nd6.c
index ace07ab..b3db0a8 100644
--- a/sbin/ifconfig/af_nd6.c
+++ b/sbin/ifconfig/af_nd6.c
@@ -148,7 +148,7 @@ nd6_status(int s)
memset(&nd, 0, sizeof(nd));
strncpy(nd.ifname, ifr.ifr_name, sizeof(nd.ifname));
if ((s6 = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
- if (errno != EAFNOSUPPORT && error != EPROTONOSUPPORT)
+ if (errno != EAFNOSUPPORT && errno != EPROTONOSUPPORT)
warn("socket(AF_INET6, SOCK_DGRAM)");
return;
}
OpenPOWER on IntegriCloud