Browse Source

darix asked for this version of the type cast

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@840 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.8
Jan Kneschke 16 years ago
parent
commit
0ed6b72923
  1. 4
      src/plugin.c

4
src/plugin.c

@ -177,8 +177,12 @@ int plugins_load(server *srv) {
return -1;
}
#else
#if 1
init = (int (*)(plugin *))dlsym(p->lib, srv->tmp_buf->ptr);
#else
*(void **)(&init) = dlsym(p->lib, srv->tmp_buf->ptr);
#endif
if ((error = dlerror()) != NULL) {
log_error_write(srv, __FILE__, __LINE__, "s", error);

Loading…
Cancel
Save