summaryrefslogtreecommitdiff
path: root/libexec/ld.so
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2006-05-06 22:06:27 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2006-05-06 22:06:27 +0000
commit8ab44d015eb6364189f2fb0146ff4257ba96c579 (patch)
tree70b852d43cd0ac75d7179d85a80f0aee489378aa /libexec/ld.so
parenta306371e0b29cdcce70e52413724e64eee634918 (diff)
While os-note-elf.h uses '.long' on the openbsd note section, they
are really stored as ints. keep the variable name the same as the type. (just a variable rename)
Diffstat (limited to 'libexec/ld.so')
-rw-r--r--libexec/ld.so/prebind/prebind.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libexec/ld.so/prebind/prebind.c b/libexec/ld.so/prebind/prebind.c
index 9b05fd1836d..15fb839ff92 100644
--- a/libexec/ld.so/prebind/prebind.c
+++ b/libexec/ld.so/prebind/prebind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: prebind.c,v 1.12 2006/05/06 21:01:30 drahn Exp $ */
+/* $OpenBSD: prebind.c,v 1.13 2006/05/06 22:06:26 drahn Exp $ */
/*
* Copyright (c) 2006 Dale Rahn <drahn@dalerahn.com>
*
@@ -387,18 +387,18 @@ elf_check_note(void *buf, Elf_Phdr *phdr)
{
Elf_Ehdr *ehdr;
u_long address;
- u_int *plong;
+ u_int *pint;
char *osname;
ehdr = (Elf_Ehdr *)buf;
address = phdr->p_offset;
- plong = (u_int *)((char *)buf + address);
- osname = (char *)buf + address + sizeof(*plong) * 3;
+ pint = (u_int *)((char *)buf + address);
+ osname = (char *)buf + address + sizeof(*pint) * 3;
- if (plong[0] == 8 /* OpenBSD\0 */ &&
- plong[1] == 4 /* ??? */ &&
- plong[2] == 1 /* type_osversion */ &&
+ if (pint[0] == 8 /* OpenBSD\0 */ &&
+ pint[1] == 4 /* ??? */ &&
+ pint[2] == 1 /* type_osversion */ &&
strcmp("OpenBSD", osname) == 0)
return 1;