Browse Source

dlopen and dlsym take const char * parameters.

Fix prototypes, propagate const where applicable.
OPENBSD_2_7
espie 25 years ago
parent
commit
ed31ea2769
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      src/include/dlfcn.h
  2. +3
    -3
      src/include/link.h

+ 3
- 3
src/include/dlfcn.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: dlfcn.h,v 1.2 1997/09/21 10:45:32 niklas Exp $ */
/* $OpenBSD: dlfcn.h,v 1.3 1999/12/09 18:10:23 espie Exp $ */
/* $NetBSD: dlfcn.h,v 1.2 1995/06/05 19:38:00 pk Exp $ */
/*
@ -40,9 +40,9 @@
* User interface to the run-time linker.
*/
__BEGIN_DECLS
extern void *dlopen __P((char *, int));
extern void *dlopen __P((const char *, int));
extern int dlclose __P((void *));
extern void *dlsym __P((void *, char *));
extern void *dlsym __P((void *, const char *));
extern int dlctl __P((void *, int, void *));
extern char *dlerror __P((void));
__END_DECLS


+ 3
- 3
src/include/link.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: link.h,v 1.4 1999/05/18 15:50:09 espie Exp $ */
/* $OpenBSD: link.h,v 1.5 1999/12/09 18:10:23 espie Exp $ */
/* $NetBSD: link.h,v 1.10 1996/01/09 00:00:11 pk Exp $ */
/*
@ -167,9 +167,9 @@ struct so_debug {
* Entry points into ld.so - user interface to the run-time linker.
*/
struct ld_entry {
void *(*dlopen) __P((char *, int));
void *(*dlopen) __P((const char *, int));
int (*dlclose) __P((void *));
void *(*dlsym) __P((void *, char *));
void *(*dlsym) __P((void *, const char *));
int (*dlctl) __P((void *, int, void *));
void (*dlexit) __P((void));
void (*dlrsrvd[3]) __P((void));


Loading…
Cancel
Save