Source-Changes-HG archive

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

[src/trunk]: src/sys/dist/ipf/netinet Using USE_SPL should be done after the ...



details:   https://anonhg.NetBSD.org/src/rev/397acb8d5825
branches:  trunk
changeset: 581945:397acb8d5825
user:      darrenr <darrenr%NetBSD.org@localhost>
date:      Sat Jun 11 12:12:59 2005 +0000

description:
Using USE_SPL should be done after the last place it is defined.

diffstat:

 sys/dist/ipf/netinet/ip_compat.h |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (35 lines):

diff -r a84d3c735aab -r 397acb8d5825 sys/dist/ipf/netinet/ip_compat.h
--- a/sys/dist/ipf/netinet/ip_compat.h  Sat Jun 11 11:25:28 2005 +0000
+++ b/sys/dist/ipf/netinet/ip_compat.h  Sat Jun 11 12:12:59 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_compat.h,v 1.6 2005/06/11 11:25:28 darrenr Exp $    */
+/*     $NetBSD: ip_compat.h,v 1.7 2005/06/11 12:12:59 darrenr Exp $    */
 
 /*
  * Copyright (C) 1993-2001, 2003 by Darren Reed.
@@ -1377,12 +1377,6 @@
 
 #endif
 
-#if defined(USE_SPL) && defined(_KERNEL)
-# define       SPL_INT(x)      int x
-#else
-# define       SPL_INT(x)
-#endif
-
 #define        MAX_IPV4HDR     ((0xf << 2) + sizeof(struct icmp) + sizeof(ip_t) + 8)
 
 #ifndef        IP_OFFMASK
@@ -1569,6 +1563,12 @@
 # define       ATOMIC_DEC(x)           (x)--
 #endif
 
+#if defined(USE_SPL) && defined(_KERNEL)
+# define       SPL_INT(x)      int x
+#else
+# define       SPL_INT(x)
+#endif
+
 /*
  * If there are no atomic operations for bit sizes defined, define them to all
  * use a generic one that works for all sizes.



Home | Main Index | Thread Index | Old Index