Const poisoning of dladdr (so that things build after the dlfcn.h change)

This commit is contained in:
kristerw 2000-02-09 22:41:53 +00:00
parent 01be126759
commit 33c172d1c1
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: link_aout.h,v 1.17 1999/03/19 22:06:36 thorpej Exp $ */
/* $NetBSD: link_aout.h,v 1.18 2000/02/09 22:41:53 kristerw Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -181,7 +181,7 @@ struct ld_entry {
void *(*dlsym) __P((void *, const char *));
int (*dlctl) __P((void *, int, void *));
void (*dlexit) __P((void));
int (*dladdr) __P((void *, Dl_info *));
int (*dladdr) __P((const void *, Dl_info *));
void (*dlrsrvd[2]) __P((void));
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: common.c,v 1.16 1999/06/17 21:09:47 thorpej Exp $ */
/* $NetBSD: common.c,v 1.17 2000/02/09 22:41:54 kristerw Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -220,7 +220,7 @@ dlerror()
int
dladdr(addr, dli)
void *addr;
const void *addr;
Dl_info *dli;
{
if ((*ld_entry) == NULL || (*ld_entry)->dladdr == NULL)