Source-Changes-HG archive

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

[src/trunk]: src/sys/altq No need to wrap these in #ifdef ALTQ -- they're not...



details:   https://anonhg.NetBSD.org/src/rev/2c28b827547c
branches:  trunk
changeset: 500607:2c28b827547c
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Dec 14 18:07:30 2000 +0000

description:
No need to wrap these in #ifdef ALTQ -- they're not even included
if ALTQ is not configured into the kernel.

diffstat:

 sys/altq/altq_conf.c |  5 +----
 sys/altq/altq_subr.c |  5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)

diffs (46 lines):

diff -r 26724eb233ab -r 2c28b827547c sys/altq/altq_conf.c
--- a/sys/altq/altq_conf.c      Thu Dec 14 18:06:13 2000 +0000
+++ b/sys/altq/altq_conf.c      Thu Dec 14 18:07:30 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: altq_conf.c,v 1.2 2000/12/14 08:49:50 thorpej Exp $    */
+/*     $NetBSD: altq_conf.c,v 1.3 2000/12/14 18:07:30 thorpej Exp $    */
 /*     $KAME: altq_conf.c,v 1.10 2000/12/14 08:12:45 thorpej Exp $     */
 
 /*
@@ -27,7 +27,6 @@
  * SUCH DAMAGE.
  */
 
-#ifdef ALTQ
 #if defined(__FreeBSD__) || defined(__NetBSD__)
 #include "opt_altq.h"
 #if (__FreeBSD__ != 2)
@@ -464,5 +463,3 @@
 }
        
 #endif  /* ALTQ_KLD */
-
-#endif /* ALTQ */
diff -r 26724eb233ab -r 2c28b827547c sys/altq/altq_subr.c
--- a/sys/altq/altq_subr.c      Thu Dec 14 18:06:13 2000 +0000
+++ b/sys/altq/altq_subr.c      Thu Dec 14 18:07:30 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: altq_subr.c,v 1.2 2000/12/14 08:49:51 thorpej Exp $    */
+/*     $NetBSD: altq_subr.c,v 1.3 2000/12/14 18:07:30 thorpej Exp $    */
 /*     $KAME: altq_subr.c,v 1.8 2000/12/14 08:12:46 thorpej Exp $      */
 
 /*
@@ -27,7 +27,6 @@
  * SUCH DAMAGE.
  */
 
-#ifdef ALTQ
 #if defined(__FreeBSD__) || defined(__NetBSD__)
 #include "opt_altq.h"
 #if (__FreeBSD__ != 2)
@@ -1548,5 +1547,3 @@
        printf("altq: emulate %uHz cpu clock\n", machclk_freq);
 }
 #endif /* !i386 && !alpha */
-
-#endif /* ALTQ */



Home | Main Index | Thread Index | Old Index