From 01a5a0ea99e301457fe2712b8e131e8b477ed69a Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 6 Jul 2016 15:46:02 +0200 Subject: [PATCH] fix incompatible-pointer-types that triggers up in 4.6 --- transforward.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/transforward.c b/transforward.c index 0537f18..3ca7020 100644 --- a/transforward.c +++ b/transforward.c @@ -108,7 +108,11 @@ static int init_probes(void) return ret; } -int procfile_write(struct file *file, const char *buffer, unsigned long count, void *data) { +/* as per http://www.tldp.org/LDP/lkmpg/2.4/html/c577.htm + the declaration of write in the file_operations struct reads: + ssize_t (*write) (struct file *, const char *, size_t, loff_t *); +*/ +ssize_t procfile_write(struct file *file, const char *buffer, size_t count, loff_t *data) { if (!once_only) { once_only=1; if (init_probes()==-1) -- 2.43.0