Source-Changes-HG archive

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

[src/trunk]: src/sys/net Don't try to set-up our sysctl sub-tree if we're bui...



details:   https://anonhg.NetBSD.org/src/rev/2dffe91c1a7b
branches:  trunk
changeset: 346952:2dffe91c1a7b
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Aug 08 02:50:05 2016 +0000

description:
Don't try to set-up our sysctl sub-tree if we're built-in - this will
happen automatically (via "registration" of the setup function in a
link-set), and if we're not a module, the SYSCTL_SETUP_PROTO() will
not have declared a function prototype!

diffstat:

 sys/net/if_pppoe.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r dc37d3ae0b82 -r 2dffe91c1a7b sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c        Sun Aug 07 23:34:31 2016 +0000
+++ b/sys/net/if_pppoe.c        Mon Aug 08 02:50:05 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.114 2016/08/07 17:38:34 christos Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.115 2016/08/08 02:50:05 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.114 2016/08/07 17:38:34 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.115 2016/08/08 02:50:05 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "pppoe.h"
@@ -238,7 +238,9 @@
 
        pppoe_softintr = softint_establish(SOFTINT_NET, pppoe_softintr_handler,
            NULL);
+#ifdef _MODULE
        sysctl_net_pppoe_setup(&pppoe_sysctl_clog);
+#endif
 }
 
 static int



Home | Main Index | Thread Index | Old Index