projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67ffa18
)
fix "dereferencing type-punned pointer will break strict-aliasing rules"
author
Nils Larsch
<nils@openssl.org>
Thu, 19 May 2005 12:01:51 +0000
(12:01 +0000)
committer
Nils Larsch
<nils@openssl.org>
Thu, 19 May 2005 12:01:51 +0000
(12:01 +0000)
warning when using gcc 4.0
crypto/dso/dso_dlfcn.c
patch
|
blob
|
history
diff --git
a/crypto/dso/dso_dlfcn.c
b/crypto/dso/dso_dlfcn.c
index 2b8f3ee4d8b0ccfb644e6ffc0f6d2587227ee554..1fd10104c521ccbf29a798091faa078f0e1c81aa 100644
(file)
--- a/
crypto/dso/dso_dlfcn.c
+++ b/
crypto/dso/dso_dlfcn.c
@@
-237,7
+237,7
@@
static void *dlfcn_bind_var(DSO *dso, const char *symname)
static DSO_FUNC_TYPE dlfcn_bind_func(DSO *dso, const char *symname)
{
void *ptr;
- DSO_FUNC_TYPE sym;
+ DSO_FUNC_TYPE sym
, *tsym = &sym
;
if((dso == NULL) || (symname == NULL))
{
@@
-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);
}
- *(void **)(
&
sym) = dlsym(ptr, symname);
+ *(void **)(
t
sym) = dlsym(ptr, symname);
if(sym == NULL)
{
DSOerr(DSO_F_DLFCN_BIND_FUNC,DSO_R_SYM_FAILURE);