Skip to content

Commit

Permalink
Fix the declaration of sys_execve() in asm-generic/syscalls.h
Browse files Browse the repository at this point in the history
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@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
David Howells authored and Linus Torvalds committed Aug 18, 2010
1 parent 145c3ae commit d15ca32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/asm-generic/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d15ca32

Please sign in to comment.