Skip to content

Commit 1782c38

Browse files
committed
Add required const to proc_handler prototypes for sysfs.
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
1 parent c526727 commit 1782c38

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ipt_NETFLOW.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,7 @@ static int switch_promisc(int newpromisc)
15251525

15261526
#ifdef CONFIG_SYSCTL
15271527
/* sysctl /proc/sys/net/netflow */
1528-
static int hsize_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
1528+
static int hsize_procctl(const ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
15291529
void __user *buffer, size_t *lenp, loff_t *fpos)
15301530
{
15311531
int ret, hsize;
@@ -1542,7 +1542,7 @@ static int hsize_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp
15421542
return ret;
15431543
}
15441544

1545-
static int sndbuf_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
1545+
static int sndbuf_procctl(const ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
15461546
void __user *buffer, size_t *lenp, loff_t *fpos)
15471547
{
15481548
int ret;
@@ -1577,7 +1577,7 @@ static int sndbuf_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *fil
15771577
}
15781578

15791579
static void free_templates(void);
1580-
static int destination_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
1580+
static int destination_procctl(const ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
15811581
void __user *buffer, size_t *lenp, loff_t *fpos)
15821582
{
15831583
int ret;
@@ -1684,7 +1684,7 @@ static void clear_ipt_netflow_stat(void)
16841684
}
16851685
}
16861686

1687-
static int flush_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
1687+
static int flush_procctl(const ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
16881688
void __user *buffer, size_t *lenp, loff_t *fpos)
16891689
{
16901690
int ret;
@@ -1713,7 +1713,7 @@ static int flush_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp
17131713
return ret;
17141714
}
17151715

1716-
static int protocol_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
1716+
static int protocol_procctl(const ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
17171717
void __user *buffer, size_t *lenp, loff_t *fpos)
17181718
{
17191719
int ret;

0 commit comments

Comments
 (0)