aboutsummaryrefslogtreecommitdiff
path: root/net/netfilter/xt_quota2.c
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2014-02-24 09:39:46 -0800
committerColin Cross <ccross@android.com>2014-03-19 13:11:07 -0700
commitc3bb9317a96b0142504c561f73f04de41befd046 (patch)
treefaf9a10c32a1b692c33d5910e811e9d20ccccf3f /net/netfilter/xt_quota2.c
parent457c3cd05958b8397211ae1f6dd3c3d325f4c0ea (diff)
netfilter: xt_qtaguid: 64-bit warning fixes
Change-Id: I2adc517c0c51050ed601992fa0ea4de8f1449414 Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'net/netfilter/xt_quota2.c')
-rw-r--r--net/netfilter/xt_quota2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_quota2.c b/net/netfilter/xt_quota2.c
index 44ebdcc7596..4328562572f 100644
--- 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 */
-static int 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));
@@ -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);
}
-static int 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));