svn commit: r252557 - head/sbin/ifconfig
Hiroki Sato
hrs at FreeBSD.org
Wed Jul 3 09:51:00 UTC 2013
Author: hrs
Date: Wed Jul 3 09:50:59 2013
New Revision: 252557
URL: http://svnweb.freebsd.org/changeset/base/252557
Log:
Fix a typo (s/error/errno/).
Modified:
head/sbin/ifconfig/af_nd6.c
Modified: head/sbin/ifconfig/af_nd6.c
==============================================================================
--- head/sbin/ifconfig/af_nd6.c Wed Jul 3 09:48:24 2013 (r252556)
+++ head/sbin/ifconfig/af_nd6.c Wed Jul 3 09:50:59 2013 (r252557)
@@ -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;
}
More information about the svn-src-all
mailing list