summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-01-20 22:10:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-01-20 22:10:49 +0000
commit9c88dd386e8011d11f46ffbeec2a412dc2c9edc5 (patch)
tree9299a63e79249f7effb45bab9dc09e0b6e98254b /lib/libc
parent25d0c691f9eb863a803f3db64326ad1a0cc23033 (diff)
type botch
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/nlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c
index dcdb67ab243..1b248199a7b 100644
--- a/lib/libc/gen/nlist.c
+++ b/lib/libc/gen/nlist.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: nlist.c,v 1.23 1998/01/02 05:32:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: nlist.c,v 1.24 1998/01/20 22:10:48 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -65,7 +65,7 @@ __aout_fdnlist(fd, list)
register struct nlist *list;
{
register struct nlist *p, *s;
- register void * strtab;
+ register void *strtab;
register off_t stroff, symoff;
register u_long symsize;
register int nent, cc;
@@ -131,7 +131,7 @@ __aout_fdnlist(fd, list)
if (soff == 0 || (s->n_type & N_STAB) != 0)
continue;
for (p = list; !ISLAST(p); p++)
- if (!strcmp(&strtab[soff], p->n_un.n_name)) {
+ if (!strcmp(&((char *)strtab)[soff], p->n_un.n_name)) {
p->n_value = s->n_value;
p->n_type = s->n_type;
p->n_desc = s->n_desc;