aboutsummaryrefslogtreecommitdiffstats
path: root/include/link.h
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-11-22 03:34:46 +0000
committerBrian Somers <brian@FreeBSD.org>1997-11-22 03:34:46 +0000
commit9822c98d98f8dd158b97c0f89f13652f308abb45 (patch)
treed330349d4b8f3693191af7e556afa00af53eb71c /include/link.h
parent18d1eb6776e78d2ab3da88590b527fe3bfbec7f6 (diff)
downloadsrc-9822c98d98f8dd158b97c0f89f13652f308abb45.tar.gz
src-9822c98d98f8dd158b97c0f89f13652f308abb45.zip
const correctness for dl*()
Notes
Notes: svn path=/head/; revision=31342
Diffstat (limited to 'include/link.h')
-rw-r--r--include/link.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/link.h b/include/link.h
index 0b55dca0fad9..19c43a4dc36b 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));
/*