First, this is because of dlopen() and dlsym() having a char *
in the system prototype.

Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>
This commit is contained in:
Marc G. Fournier 1997-01-05 23:43:58 +00:00
parent d57d3626cb
commit 3bfbe9a7fd
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ BSD44_derived_dlopen(const char *file, int num)
#else
void *vp;
if ((vp = dlopen(file, num)) == (void *) NULL) {
if ((vp = dlopen((char *) file, num)) == (void *) NULL) {
(void) sprintf(error_message, "dlopen (%s) failed", file);
}
return(vp);
@ -87,7 +87,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
(void) sprintf(buf, "_%s", name);
name = buf;
}
if ((vp = dlsym(handle, name)) == (void *) NULL) {
if ((vp = dlsym(handle, (char *) name)) == (void *) NULL) {
(void) sprintf(error_message, "dlsym (%s) failed", name);
}
return(vp);