diff options
author | brian <brian@FreeBSD.org> | 1997-11-22 03:34:46 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-22 03:34:46 +0000 |
commit | 13d351d26116b6bf544f619e0de396a53d47ccd1 (patch) | |
tree | 46f16d562b4acde1edaea05f5b36744a6d87c9ff /include | |
parent | 91940416f200da3976e054c7ca5e5791e3907163 (diff) | |
download | FreeBSD-src-13d351d26116b6bf544f619e0de396a53d47ccd1.zip FreeBSD-src-13d351d26116b6bf544f619e0de396a53d47ccd1.tar.gz |
const correctness for dl*()
Diffstat (limited to 'include')
-rw-r--r-- | include/link.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/link.h b/include/link.h index 0b55dca..19c43a4 100644 --- a/include/link.h +++ b/include/link.h @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: link.h,v 1.13 1997/05/07 20:00:00 eivind Exp $ + * $Id: link.h,v 1.14 1997/08/02 04:56:43 jdp Exp $ */ /* @@ -175,21 +175,21 @@ struct so_debug { * to crt0. */ struct ld_entry { - void *(*dlopen) __P((char *, int)); /* NONE */ + void *(*dlopen) __P((const char *, int)); /* NONE */ int (*dlclose) __P((void *)); /* NONE */ - void *(*dlsym) __P((void *, char *)); /* NONE */ - char *(*dlerror) __P((void)); /* NONE */ + void *(*dlsym) __P((void *, const char *)); /* NONE */ + const char *(*dlerror) __P((void)); /* NONE */ void (*dlexit) __P((void)); /* HAS_DLEXIT */ - void *(*dlsym3) __P((void *, char *, void *)); /* HAS_DLSYM3 */ + void *(*dlsym3) __P((void *, const char *, void *)); /* HAS_DLSYM3 */ }; /* * dl*() prototypes. */ -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 char *dlerror __P((void)); +extern void *dlsym __P((void *, const char *)); +extern const char *dlerror __P((void)); /* |