[PATCH] Fix the declaration of sys_execve() in asm-generic/syscalls.h

From: David Howells
Date: Wed Aug 18 2010 - 13:56:04 EST


Fix the declaration of sys_execve() in asm-generic/syscalls.h to have various
consts applied to its pointers.

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
---

include/asm-generic/syscalls.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/asm-generic/syscalls.h b/include/asm-generic/syscalls.h
index df84e3b..d89dec8 100644
--- a/include/asm-generic/syscalls.h
+++ b/include/asm-generic/syscalls.h
@@ -23,8 +23,10 @@ asmlinkage long sys_vfork(struct pt_regs *regs);
#endif

#ifndef sys_execve
-asmlinkage long sys_execve(char __user *filename, char __user * __user *argv,
- char __user * __user *envp, struct pt_regs *regs);
+asmlinkage long sys_execve(const char __user *filename,
+ const char __user *const __user *argv,
+ const char __user *const __user *envp,
+ struct pt_regs *regs);
#endif

#ifndef sys_mmap2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/