Commit 970ee0ae authored by Bart De Schuymer's avatar Bart De Schuymer Committed by James Morris

[EBTABLES]: Remove deprecated use of MODULE_PARM.

From Stephen Hemminger <shemminger@osdl.org>

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: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarBart De Schuymer <bdschuym@pandora.be>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent b4977b44
...@@ -21,13 +21,14 @@ ...@@ -21,13 +21,14 @@
#include <linux/if_ether.h> #include <linux/if_ether.h>
#include <linux/if_vlan.h> #include <linux/if_vlan.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/netfilter_bridge/ebtables.h> #include <linux/netfilter_bridge/ebtables.h>
#include <linux/netfilter_bridge/ebt_vlan.h> #include <linux/netfilter_bridge/ebt_vlan.h>
static unsigned char debug; static int debug;
#define MODULE_VERS "0.6" #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_PARM_DESC(debug, "debug=1 is turn on debug messages");
MODULE_AUTHOR("Nick Fedchik <nick@fedchik.org.ua>"); MODULE_AUTHOR("Nick Fedchik <nick@fedchik.org.ua>");
MODULE_DESCRIPTION("802.1Q match module (ebtables extension), v" MODULE_DESCRIPTION("802.1Q match module (ebtables extension), v"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment