diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2001-03-22 15:52:26 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2001-03-22 15:52:26 +0000 |
commit | 3e3f04d4b7e073f2ca3ac850902d5219846f03ce (patch) | |
tree | 8f2d8d79bee954c07f07ca0fe2d53252ca3ab0fc /crypto/dso | |
parent | 879d230da33bbfd61db0e7b4deeb2399c5457f84 (diff) | |
download | openssl-3e3f04d4b7e073f2ca3ac850902d5219846f03ce.tar.gz |
Fix error caused by typo (len->strlen) and warning caused by long<->int
for HP-UX shl_* (32bit dynamic loading) interface.
Diffstat (limited to 'crypto/dso')
-rw-r--r-- | crypto/dso/dso_dl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/dso/dso_dl.c b/crypto/dso/dso_dl.c index 1a898c5407..455bd66ecf 100644 --- a/crypto/dso/dso_dl.c +++ b/crypto/dso/dso_dl.c @@ -82,7 +82,7 @@ static int dl_unbind_func(DSO *dso, char *symname, DSO_FUNC_TYPE symptr); static int dl_init(DSO *dso); static int dl_finish(DSO *dso); #endif -static int dl_ctrl(DSO *dso, int cmd, long larg, void *parg); +static long dl_ctrl(DSO *dso, int cmd, long larg, void *parg); static DSO_METHOD dso_meth_dl = { "OpenSSL 'dl' shared library method", @@ -123,7 +123,7 @@ static int dl_load(DSO *dso, const char *filename) int len; /* The same comment as in dlfcn_load applies here. bleurgh. */ - len = strlen(filename) + len(extension); + len = strlen(filename) + strlen(extension); if((dso->flags & DSO_FLAG_NAME_TRANSLATION) && (len + 3 < DSO_MAX_TRANSLATED_SIZE) && (strstr(filename, "/") == NULL)) @@ -229,7 +229,7 @@ static DSO_FUNC_TYPE dl_bind_func(DSO *dso, const char *symname) return((DSO_FUNC_TYPE)sym); } -static int dl_ctrl(DSO *dso, int cmd, long larg, void *parg) +static long dl_ctrl(DSO *dso, int cmd, long larg, void *parg) { if(dso == NULL) { @@ -241,10 +241,10 @@ static int dl_ctrl(DSO *dso, int cmd, long larg, void *parg) case DSO_CTRL_GET_FLAGS: return dso->flags; case DSO_CTRL_SET_FLAGS: - dso->flags = (int)larg; + dso->flags = larg; return(0); case DSO_CTRL_OR_FLAGS: - dso->flags |= (int)larg; + dso->flags |= larg; return(0); default: break; |