aboutsummaryrefslogtreecommitdiff
path: root/net/netfilter/xt_quota2.c
diff options
context:
space:
mode:
authorMark Hambleton <mahamble@broadcom.com>2013-11-29 13:44:53 +0000
committerMark Brown <broonie@linaro.org>2013-12-13 18:48:02 +0000
commit7138440c585bba445e0dc60dc202f6894f110135 (patch)
tree32c478b619d54a7dc9e862efb3583723c98bab6f /net/netfilter/xt_quota2.c
parenteed4bafd63b5584adb832a582a931ecba41dec55 (diff)
netfilter: fix function return types for 64bitv3.10/topic/aosp-warnings
Fix functions to return ssize_t instead of int to match prototypes. Signed-off-by: Mark Hambleton <mahamble@broadcom.com> Reviewed-by: Edwin Chan <echan@broadcom.com> Reviewed-by: James King <jamesk@broadcom.com> Reviewed-by: John Garry <jgarry@broadcom.com> Reviewed-by: Mark Hambleton <mark.hambleton@broadcom.com> Reviewed-by: Joyjit Nath <joyjit@broadcom.com> Signed-off-by: Mark Brown <broonie@linaro.org>
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));