Avoid warnings.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 12 May 2005 22:40:19 +0000 (22:40 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 12 May 2005 22:40:19 +0000 (22:40 +0000)
crypto/dso/dso_dlfcn.c

index 2d7534a..2b8f3ee 100644 (file)
@@ -255,7 +255,7 @@ static DSO_FUNC_TYPE dlfcn_bind_func(DSO *dso, const char *symname)
                DSOerr(DSO_F_DLFCN_BIND_FUNC,DSO_R_NULL_HANDLE);
                return(NULL);
                }
-       sym = (DSO_FUNC_TYPE)dlsym(ptr, symname);
+       *(void **)(&sym) = dlsym(ptr, symname);
        if(sym == NULL)
                {
                DSOerr(DSO_F_DLFCN_BIND_FUNC,DSO_R_SYM_FAILURE);