diff options
| author | pooka <pooka@NetBSD.org> | 2007-11-26 19:01:26 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2007-11-26 19:01:26 +0000 |
| commit | 61e8303e9d2130e326ebeb059b3721b62e6e3e26 (patch) | |
| tree | 2b963751bd2e4f94422574e734c944456bd3d6fe /sys/kern/exec_elf32.c | |
| parent | 0d66ddd732d406d23ea20628e7a3e48b6be0df54 (diff) | |
Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start. In case the calling lwp is desired, curlwp should
be used.
quick consensus on tech-kern
Diffstat (limited to 'sys/kern/exec_elf32.c')
| -rw-r--r-- | sys/kern/exec_elf32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/exec_elf32.c b/sys/kern/exec_elf32.c index e15a6c5aba7..beabb6ef40c 100644 --- a/sys/kern/exec_elf32.c +++ b/sys/kern/exec_elf32.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_elf32.c,v 1.125 2007/10/19 12:16:41 ad Exp $ */ +/* $NetBSD: exec_elf32.c,v 1.126 2007/11/26 19:01:58 pooka Exp $ */ /*- * Copyright (c) 1994, 2000, 2005 The NetBSD Foundation, Inc. @@ -64,7 +64,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(1, "$NetBSD: exec_elf32.c,v 1.125 2007/10/19 12:16:41 ad Exp $"); +__KERNEL_RCSID(1, "$NetBSD: exec_elf32.c,v 1.126 2007/11/26 19:01:58 pooka Exp $"); /* If not included by exec_elf64.c, ELFSIZE won't be defined. */ #ifndef ELFSIZE @@ -380,11 +380,11 @@ elf_load_file(struct lwp *l, struct exec_package *epp, char *path, error = EACCES; goto badunlock; } - if ((error = VOP_ACCESS(vp, VEXEC, l->l_cred, l)) != 0) + if ((error = VOP_ACCESS(vp, VEXEC, l->l_cred)) != 0) goto badunlock; /* get attributes */ - if ((error = VOP_GETATTR(vp, &attr, l->l_cred, l)) != 0) + if ((error = VOP_GETATTR(vp, &attr, l->l_cred)) != 0) goto badunlock; /* |
