Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jul 2013 09:51:00 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252557 - head/sbin/ifconfig
Message-ID:  <201307030951.r639p0Ux014296@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307030951.r639p0Ux014296>