First, this is because of dlopen() and dlsym() having a char *
in the system prototype.
Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>
#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);
(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);