Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Use __CTASSERT() in the header.



details:   https://anonhg.NetBSD.org/src/rev/fb423852c125
branches:  trunk
changeset: 796347:fb423852c125
user:      rmind <rmind%NetBSD.org@localhost>
date:      Fri May 30 02:17:01 2014 +0000

description:
Use __CTASSERT() in the header.

diffstat:

 sys/netinet/ip_var.h |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r 586a81d02148 -r fb423852c125 sys/netinet/ip_var.h
--- a/sys/netinet/ip_var.h      Fri May 30 02:16:17 2014 +0000
+++ b/sys/netinet/ip_var.h      Fri May 30 02:17:01 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_var.h,v 1.104 2014/05/29 23:02:48 rmind Exp $       */
+/*     $NetBSD: ip_var.h,v 1.105 2014/05/30 02:17:01 rmind Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -173,9 +173,8 @@
 #define        IP_RAWOUTPUT            0x0002          /* raw ip header exists */
 #define        IP_RETURNMTU            0x0004          /* pass back mtu on EMSGSIZE */
 #define        IP_NOIPNEWID            0x0008          /* don't fill in ip_id */
-
-CTASSERT(SO_DONTROUTE ==       0x0010);
-CTASSERT(SO_BROADCAST ==       0x0020);
+__CTASSERT(SO_DONTROUTE ==     0x0010);
+__CTASSERT(SO_BROADCAST ==     0x0020);
 #define        IP_ROUTETOIF            SO_DONTROUTE    /* bypass routing tables */
 #define        IP_ALLOWBROADCAST       SO_BROADCAST    /* can send broadcast packets */
 



Home | Main Index | Thread Index | Old Index