change first argument of dladdr to const.

This commit is contained in:
scottb 2000-02-08 16:22:59 +00:00
parent b614c6a569
commit 076e309d3e
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dlfcn.h,v 1.10 1999/05/19 14:50:49 kleink Exp $ */
/* $NetBSD: dlfcn.h,v 1.11 2000/02/08 16:22:59 scottb Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -58,7 +58,7 @@ extern void *dlopen __P((const char *, int));
extern int dlclose __P((void *));
extern void *dlsym __P((void *, const char *));
#if !defined(_XOPEN_SOURCE)
extern int dladdr __P((void *, Dl_info *));
extern int dladdr __P((const void *, Dl_info *));
extern int dlctl __P((void *, int, void *));
#endif
extern __aconst char *dlerror __P((void));

View File

@ -1,4 +1,4 @@
/* $NetBSD: common.c,v 1.5 2000/02/07 21:40:40 scottb Exp $ */
/* $NetBSD: common.c,v 1.6 2000/02/08 16:23:00 scottb Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@ -134,7 +134,7 @@ dlerror()
}
int
dladdr(void *addr, Dl_info *dli)
dladdr(const void *addr, Dl_info *dli)
{
if (__mainprog_obj == NULL)

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtld.h,v 1.23 2000/02/07 21:40:42 scottb Exp $ */
/* $NetBSD: rtld.h,v 1.24 2000/02/08 16:23:00 scottb Exp $ */
/*
* Copyright 1996 John D. Polstra.
@ -193,7 +193,7 @@ typedef struct Struct_Obj_Entry {
void *(*dlsym) __P((void *, const char *));
char *(*dlerror) __P((void));
int (*dlclose) __P((void *));
int (*dladdr) __P((void *, Dl_info *));
int (*dladdr) __P((const void *, Dl_info *));
int mainprog:1; /* True if this is the main program */
int rtld:1; /* True if this is the dynamic linker */