From: tedu Date: Wed, 23 Apr 2014 21:55:26 +0000 (+0000) Subject: fix some variables X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e89fec071efce5c1b3707bdc5b3a18d4d94de6ad;p=openbsd fix some variables --- 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);