diff options
| author | yamt <yamt@NetBSD.org> | 2007-03-05 09:22:02 +0000 |
|---|---|---|
| committer | yamt <yamt@NetBSD.org> | 2007-03-05 09:22:02 +0000 |
| commit | a71bbfc44dffcd168ea99bea0baf1c06624207d2 (patch) | |
| tree | d9e0b4a95405f534fabeae956de4e8e411ddb62d /sys/kern/exec_elf32.c | |
| parent | 1f1847fbabb32667c9da9bd569f44cd91927a234 (diff) | |
netbsd_elf_signature: fix a caddr_t removal botch which
causes "init: not found".
Diffstat (limited to 'sys/kern/exec_elf32.c')
| -rw-r--r-- | sys/kern/exec_elf32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/exec_elf32.c b/sys/kern/exec_elf32.c index 5db5b3f0763..eb9bb5b8694 100644 --- a/sys/kern/exec_elf32.c +++ b/sys/kern/exec_elf32.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_elf32.c,v 1.121 2007/03/05 04:59:19 dogcow Exp $ */ +/* $NetBSD: exec_elf32.c,v 1.122 2007/03/05 09:22:02 yamt 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.121 2007/03/05 04:59:19 dogcow Exp $"); +__KERNEL_RCSID(1, "$NetBSD: exec_elf32.c,v 1.122 2007/03/05 09:22:02 yamt Exp $"); /* If not included by exec_elf64.c, ELFSIZE won't be defined. */ #ifndef ELFSIZE @@ -792,7 +792,7 @@ netbsd_elf_signature(struct lwp *l, struct exec_package *epp, if (np->n_type != ELF_NOTE_TYPE_NETBSD_TAG || np->n_namesz != ELF_NOTE_NETBSD_NAMESZ || np->n_descsz != ELF_NOTE_NETBSD_DESCSZ || - memcmp((char *)np + 1, ELF_NOTE_NETBSD_NAME, + memcmp(np + 1, ELF_NOTE_NETBSD_NAME, ELF_NOTE_NETBSD_NAMESZ)) goto next; |
