patch-2.1.32 linux/net/ax25/af_ax25.c
Next file: linux/net/ax25/ax25_dev.c
Previous file: linux/net/ax25/Makefile
Back to the patch index
Back to the overall index
-  Lines: 21
-  Date:
Sat Apr  5 12:14:21 1997
-  Orig file: 
v2.1.31/linux/net/ax25/af_ax25.c
-  Orig date: 
Thu Mar 27 14:40:13 1997
diff -u --recursive --new-file v2.1.31/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -1797,7 +1797,9 @@
 	ax25_packet_type.type = htons(ETH_P_AX25);
 	dev_add_pack(&ax25_packet_type);
 	register_netdevice_notifier(&ax25_dev_notifier);
+#ifdef CONFIG_SYSCTL
 	ax25_register_sysctl();
+#endif
 
 #ifdef CONFIG_PROC_FS
 	proc_net_register(&proc_ax25_route);
@@ -1828,8 +1830,9 @@
 	ax25_uid_free();
 	ax25_dev_free();
 
+#ifdef CONFIG_SYSCTL
 	ax25_unregister_sysctl();
-
+#endif
 	unregister_netdevice_notifier(&ax25_dev_notifier);
 
 	ax25_packet_type.type = htons(ETH_P_AX25);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov