From 076e309d3e4f95b5761369eddad43cc65d398d78 Mon Sep 17 00:00:00 2001 From: scottb Date: Tue, 8 Feb 2000 16:22:59 +0000 Subject: [PATCH] change first argument of dladdr to const. --- include/dlfcn.h | 4 ++-- lib/csu/common_elf/common.c | 4 ++-- libexec/ld.elf_so/rtld.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/dlfcn.h b/include/dlfcn.h index ffa8c0b70eca..b185877deada 100644 --- a/include/dlfcn.h +++ b/include/dlfcn.h @@ -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)); diff --git a/lib/csu/common_elf/common.c b/lib/csu/common_elf/common.c index 31ee824350d1..75fb3d9d888a 100644 --- a/lib/csu/common_elf/common.c +++ b/lib/csu/common_elf/common.c @@ -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) diff --git a/libexec/ld.elf_so/rtld.h b/libexec/ld.elf_so/rtld.h index e6225dd74e63..fc1a96d9984f 100644 --- a/libexec/ld.elf_so/rtld.h +++ b/libexec/ld.elf_so/rtld.h @@ -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 */