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 | d30fb9057e97bc9b29d31911643c801fac94c47f (patch) | |
tree | 2945c0d1225ca5593d29263c048d78fbaeebb89b /package/switch/src/switch-core.c | |
parent | d72ac292bd5374000239f967ee9d0aaa974b4a73 (diff) | |
download | upstream-d30fb9057e97bc9b29d31911643c801fac94c47f.tar.gz upstream-d30fb9057e97bc9b29d31911643c801fac94c47f.tar.bz2 upstream-d30fb9057e97bc9b29d31911643c801fac94c47f.zip |
fix module params on 2.6.17, suppress warnings.
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4005 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch/src/switch-core.c')
-rw-r--r-- | package/switch/src/switch-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package/switch/src/switch-core.c b/package/switch/src/switch-core.c index 6b59b9ba24..7bf705afe4 100644 --- a/package/switch/src/switch-core.c +++ b/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); } |