projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netfilter: xt_qtaguid: 64-bit warning fixes
[firefly-linux-kernel-4.4.55.git]
/
net
/
netfilter
/
xt_quota2.c
diff --git
a/net/netfilter/xt_quota2.c
b/net/netfilter/xt_quota2.c
index 44ebdcc75965c75c32efe65cce03d7897f2d06e2..4328562572f670e6c314f442feb2d0fa575eae85 100644
(file)
--- a/
net/netfilter/xt_quota2.c
+++ b/
net/netfilter/xt_quota2.c
@@
-122,7
+122,7
@@
static void quota2_log(unsigned int hooknum,
}
#endif /* if+else CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG */
}
#endif /* if+else CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG */
-static
in
t quota_proc_read(struct file *file, char __user *buf,
+static
ssize_
t quota_proc_read(struct file *file, char __user *buf,
size_t size, loff_t *ppos)
{
struct xt_quota_counter *e = PDE_DATA(file_inode(file));
size_t size, loff_t *ppos)
{
struct xt_quota_counter *e = PDE_DATA(file_inode(file));
@@
-135,7
+135,7
@@
static int quota_proc_read(struct file *file, char __user *buf,
return simple_read_from_buffer(buf, size, ppos, tmp, tmp_size);
}
return simple_read_from_buffer(buf, size, ppos, tmp, tmp_size);
}
-static
in
t quota_proc_write(struct file *file, const char __user *input,
+static
ssize_
t quota_proc_write(struct file *file, const char __user *input,
size_t size, loff_t *ppos)
{
struct xt_quota_counter *e = PDE_DATA(file_inode(file));
size_t size, loff_t *ppos)
{
struct xt_quota_counter *e = PDE_DATA(file_inode(file));