svn commit: r337854 - head/sys/netinet

Luiz Otavio O Souza loos at FreeBSD.org
Wed Aug 15 15:44:31 UTC 2018


Author: loos
Date: Wed Aug 15 15:44:30 2018
New Revision: 337854
URL: https://svnweb.freebsd.org/changeset/base/337854

Log:
  Late style follow up on r312770.
  
  Submitted by:	glebius
  X-MFC with:	r312770
  MFC after:	3 days

Modified:
  head/sys/netinet/in.c

Modified: head/sys/netinet/in.c
==============================================================================
--- head/sys/netinet/in.c	Wed Aug 15 14:57:34 2018	(r337853)
+++ head/sys/netinet/in.c	Wed Aug 15 15:44:30 2018	(r337854)
@@ -620,8 +620,7 @@ in_difaddr_ioctl(u_long cmd, caddr_t data, struct ifne
 	in_ifadown(&ia->ia_ifa, 1);
 
 	if (ia->ia_ifa.ifa_carp)
-		(*carp_detach_p)(&ia->ia_ifa,
-		    (cmd == SIOCDIFADDR) ? false : true);
+		(*carp_detach_p)(&ia->ia_ifa, cmd == SIOCAIFADDR);
 
 	/*
 	 * If this is the last IPv4 address configured on this


More information about the svn-src-all mailing list