[PATCH] [TRIVIAL] change to module_param on 2.6

Stephen Hemminger <[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Organization Open Source Development Lab
Message-ID <20040806152244.49730efb@dell_ss3.pdx.osdl.net>
Minor patch to change from MODULE_PARM to module_param.
Using a char for a flag is not necessary, every else just uses an int.

Signed-off-by: Stephen Hemminger <[email protected]>

diff -Nru a/net/bridge/netfilter/ebt_vlan.c b/net/bridge/netfilter/ebt_vlan.c
--- a/net/bridge/netfilter/ebt_vlan.c	2004-07-23 13:22:36 -07:00
+++ b/net/bridge/netfilter/ebt_vlan.c	2004-07-23 13:22:36 -07:00
@@ -21,13 +21,14 @@
 #include <linux/if_ether.h>
 #include <linux/if_vlan.h>
 #include <linux/module.h>
+#include <linux/moduleparam.h>
 #include <linux/netfilter_bridge/ebtables.h>
 #include <linux/netfilter_bridge/ebt_vlan.h>
 
-static unsigned char debug;
+static int debug;
 #define MODULE_VERS "0.6"
 
-MODULE_PARM(debug, "0-1b");
+module_param(debug, int, 0);
 MODULE_PARM_DESC(debug, "debug=1 is turn on debug messages");
 MODULE_AUTHOR("Nick Fedchik <nick-UvdXiu2sajOKBXSJ/[email protected]>");
 MODULE_DESCRIPTION("802.1Q match module (ebtables extension), v"


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.