diff options
| author | Nicolas Thill <nico@openwrt.org> | 2006-06-19 02:05:27 +0000 |
|---|---|---|
| committer | Nicolas Thill <nico@openwrt.org> | 2006-06-19 02:05:27 +0000 |
| commit | 6f50a3edc553fc1a64b08e1b91faa2e97f4c7d2b (patch) | |
| tree | 9e9a69e705a3cb89a639bde3e9d151df47e6e4a8 /openwrt/package/switch/src/switch-core.c | |
| parent | efe08c7da9d11781f5ca3b2bb69d09601e54eac3 (diff) | |
| download | mtk-20170518-6f50a3edc553fc1a64b08e1b91faa2e97f4c7d2b.zip mtk-20170518-6f50a3edc553fc1a64b08e1b91faa2e97f4c7d2b.tar.gz mtk-20170518-6f50a3edc553fc1a64b08e1b91faa2e97f4c7d2b.tar.bz2 | |
fix module params on 2.6.17, suppress warnings.
SVN-Revision: 4005
Diffstat (limited to 'openwrt/package/switch/src/switch-core.c')
| -rw-r--r-- | openwrt/package/switch/src/switch-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openwrt/package/switch/src/switch-core.c b/openwrt/package/switch/src/switch-core.c index 6b59b9b..7bf705a 100644 --- a/openwrt/package/switch/src/switch-core.c +++ b/openwrt/package/switch/src/switch-core.c @@ -64,8 +64,8 @@ static ssize_t switch_proc_read(struct file *file, char *buf, size_t count, loff static ssize_t switch_proc_write(struct file *file, const char *buf, size_t count, void *data); static struct file_operations switch_proc_fops = { - read: switch_proc_read, - write: switch_proc_write + .read = (ssize_t (*) (struct file *, char __user *, size_t, loff_t *))switch_proc_read, + .write = (ssize_t (*) (struct file *, const char __user *, size_t, loff_t *))switch_proc_write }; static ssize_t switch_proc_read(struct file *file, char *buf, size_t count, loff_t *ppos) @@ -436,7 +436,7 @@ void switch_unregister_driver(char *name) { } } -static int __init switch_init() +static int __init switch_init(void) { if ((switch_root = proc_mkdir("switch", NULL)) == NULL) { printk("%s: proc_mkdir failed.\n", __FILE__); @@ -448,7 +448,7 @@ static int __init switch_init() return 0; } -static void __exit switch_exit() +static void __exit switch_exit(void) { remove_proc_entry("switch", NULL); } |
