projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reorder nas command line parameters (required for bridge operation)
[openwrt.git]
/
package
/
switch
/
src
/
switch-core.c
diff --git
a/package/switch/src/switch-core.c
b/package/switch/src/switch-core.c
index
6b59b9b
..
7bf705a
100644
(file)
--- 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 = {
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)
};
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__);
{
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;
}
return 0;
}
-static void __exit switch_exit()
+static void __exit switch_exit(
void
)
{
remove_proc_entry("switch", NULL);
}
{
remove_proc_entry("switch", NULL);
}
This page took
0.020002 seconds
and
4
git commands to generate.