Declare dlerror()'s return value __aconst.

This commit is contained in:
kleink 1999-05-19 14:50:49 +00:00
parent 28d76befd4
commit 196becef81
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dlfcn.h,v 1.9 1998/09/05 13:11:07 pk Exp $ */
/* $NetBSD: dlfcn.h,v 1.10 1999/05/19 14:50:49 kleink Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -61,7 +61,7 @@ extern void *dlsym __P((void *, const char *));
extern int dladdr __P((void *, Dl_info *));
extern int dlctl __P((void *, int, void *));
#endif
extern char *dlerror __P((void));
extern __aconst char *dlerror __P((void));
__END_DECLS
/* Values for dlopen `mode'. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: common.c,v 1.14 1999/01/28 23:59:49 fvdl Exp $ */
/* $NetBSD: common.c,v 1.15 1999/05/19 14:50:50 kleink Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -206,7 +206,7 @@ dlctl(fd, cmd, arg)
return ((*ld_entry)->dlctl)(fd, cmd, arg);
}
char *
__aconst char *
dlerror()
{
int error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: common.c,v 1.2 1999/05/19 14:47:12 kleink Exp $ */
/* $NetBSD: common.c,v 1.3 1999/05/19 14:50:50 kleink Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@ -116,7 +116,7 @@ dlctl(fd, cmd, arg)
}
#endif
char *
__aconst char *
dlerror()
{