git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
drivers
/
isdn
/
capi
/
kcapi_proc.c
diff --git
a/drivers/isdn/capi/kcapi_proc.c
b/drivers/isdn/capi/kcapi_proc.c
index
195be3b
..
ca9dc00
100644
(file)
--- a/
drivers/isdn/capi/kcapi_proc.c
+++ b/
drivers/isdn/capi/kcapi_proc.c
@@
-89,14
+89,14
@@
static int contrstats_show(struct seq_file *seq, void *v)
return 0;
}
return 0;
}
-struct seq_operations seq_controller_ops = {
+st
atic st
ruct seq_operations seq_controller_ops = {
.start = controller_start,
.next = controller_next,
.stop = controller_stop,
.show = controller_show,
};
.start = controller_start,
.next = controller_next,
.stop = controller_stop,
.show = controller_show,
};
-struct seq_operations seq_contrstats_ops = {
+st
atic st
ruct seq_operations seq_contrstats_ops = {
.start = controller_start,
.next = controller_next,
.stop = controller_stop,
.start = controller_start,
.next = controller_next,
.stop = controller_stop,
@@
-192,14
+192,14
@@
applstats_show(struct seq_file *seq, void *v)
return 0;
}
return 0;
}
-struct seq_operations seq_applications_ops = {
+st
atic st
ruct seq_operations seq_applications_ops = {
.start = applications_start,
.next = applications_next,
.stop = applications_stop,
.show = applications_show,
};
.start = applications_start,
.next = applications_next,
.stop = applications_stop,
.show = applications_show,
};
-struct seq_operations seq_applstats_ops = {
+st
atic st
ruct seq_operations seq_applstats_ops = {
.start = applications_start,
.next = applications_next,
.stop = applications_stop,
.start = applications_start,
.next = applications_next,
.stop = applications_stop,
@@
-233,7
+233,7
@@
static struct file_operations proc_applstats_ops = {
};
static void
};
static void
-create_seq_entry(char *name, mode_t mode, struct file_operations *f)
+create_seq_entry(char *name, mode_t mode,
const
struct file_operations *f)
{
struct proc_dir_entry *entry;
entry = create_proc_entry(name, mode, NULL);
{
struct proc_dir_entry *entry;
entry = create_proc_entry(name, mode, NULL);
@@
-246,7
+246,7
@@
create_seq_entry(char *name, mode_t mode, struct file_operations *f)
static __inline__ struct capi_driver *capi_driver_get_idx(loff_t pos)
{
static __inline__ struct capi_driver *capi_driver_get_idx(loff_t pos)
{
- struct capi_driver *drv =
0
;
+ struct capi_driver *drv =
NULL
;
struct list_head *l;
loff_t i;
struct list_head *l;
loff_t i;
@@
-256,7
+256,7
@@
static __inline__ struct capi_driver *capi_driver_get_idx(loff_t pos)
if (i++ == pos)
return drv;
}
if (i++ == pos)
return drv;
}
- return
0
;
+ return
NULL
;
}
static void *capi_driver_start(struct seq_file *seq, loff_t *pos)
}
static void *capi_driver_start(struct seq_file *seq, loff_t *pos)
@@
-271,7
+271,7
@@
static void *capi_driver_next(struct seq_file *seq, void *v, loff_t *pos)
{
struct capi_driver *drv = (struct capi_driver *)v;
++*pos;
{
struct capi_driver *drv = (struct capi_driver *)v;
++*pos;
- if (drv->list.next == &capi_drivers) return
0
;
+ if (drv->list.next == &capi_drivers) return
NULL
;
return list_entry(drv->list.next, struct capi_driver, list);
}
return list_entry(drv->list.next, struct capi_driver, list);
}
@@
-287,7
+287,7
@@
static int capi_driver_show(struct seq_file *seq, void *v)
return 0;
}
return 0;
}
-struct seq_operations seq_capi_driver_ops = {
+st
atic st
ruct seq_operations seq_capi_driver_ops = {
.start = capi_driver_start,
.next = capi_driver_next,
.stop = capi_driver_stop,
.start = capi_driver_start,
.next = capi_driver_next,
.stop = capi_driver_stop,