Commit 3bfbe9a7 authored by Marc G. Fournier's avatar Marc G. Fournier

Fixes:

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

Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>
parent d57d3626
...@@ -66,7 +66,7 @@ BSD44_derived_dlopen(const char *file, int num) ...@@ -66,7 +66,7 @@ BSD44_derived_dlopen(const char *file, int num)
#else #else
void *vp; 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); (void) sprintf(error_message, "dlopen (%s) failed", file);
} }
return(vp); return(vp);
...@@ -87,7 +87,7 @@ BSD44_derived_dlsym(void *handle, const char *name) ...@@ -87,7 +87,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
(void) sprintf(buf, "_%s", name); (void) sprintf(buf, "_%s", name);
name = buf; 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); (void) sprintf(error_message, "dlsym (%s) failed", name);
} }
return(vp); return(vp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment