From e89fec071efce5c1b3707bdc5b3a18d4d94de6ad Mon Sep 17 00:00:00 2001 From: tedu Date: Wed, 23 Apr 2014 21:55:26 +0000 Subject: [PATCH] fix some variables --- lib/libcrypto/dso/dso_dlfcn.c | 3 +-- lib/libssl/src/crypto/dso/dso_dlfcn.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/dso/dso_dlfcn.c b/lib/libcrypto/dso/dso_dlfcn.c index 9731df136d1..ea4e4935aac 100644 --- a/lib/libcrypto/dso/dso_dlfcn.c +++ b/lib/libcrypto/dso/dso_dlfcn.c @@ -245,7 +245,6 @@ static char * dlfcn_merger(DSO *dso, const char *filespec1, const char *filespec2) { char *merged; - size_t len; if (!filespec1 && !filespec2) { DSOerr(DSO_F_DLFCN_MERGER, @@ -275,7 +274,7 @@ dlfcn_merger(DSO *dso, const char *filespec1, const char *filespec2) the concatenation of filespec2 followed by a slash followed by filespec1. */ { - int spec2len, len; + size_t spec2len, len; spec2len = strlen(filespec2); len = spec2len + (filespec1 ? strlen(filespec1) : 0); diff --git a/lib/libssl/src/crypto/dso/dso_dlfcn.c b/lib/libssl/src/crypto/dso/dso_dlfcn.c index 9731df136d1..ea4e4935aac 100644 --- a/lib/libssl/src/crypto/dso/dso_dlfcn.c +++ b/lib/libssl/src/crypto/dso/dso_dlfcn.c @@ -245,7 +245,6 @@ static char * dlfcn_merger(DSO *dso, const char *filespec1, const char *filespec2) { char *merged; - size_t len; if (!filespec1 && !filespec2) { DSOerr(DSO_F_DLFCN_MERGER, @@ -275,7 +274,7 @@ dlfcn_merger(DSO *dso, const char *filespec1, const char *filespec2) the concatenation of filespec2 followed by a slash followed by filespec1. */ { - int spec2len, len; + size_t spec2len, len; spec2len = strlen(filespec2); len = spec2len + (filespec1 ? strlen(filespec1) : 0); -- 2.20.1