diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-02-18 17:23:20 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-02-18 17:23:20 +0000 |
commit | d1049ad93e67a552e29b3f875ffcb537e66f9458 (patch) | |
tree | 43ee8d63c4d160041a15dd9047eac69b56d23ba2 | |
parent | 5f4cc234fb6f75775a2b5265e3b0c4dba1fc97be (diff) |
Fix Win32 warnings.
-rw-r--r-- | apps/dgst.c | 2 | ||||
-rw-r--r-- | crypto/x509/by_dir.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/dgst.c b/apps/dgst.c index 4bb701551f..09d0934519 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -490,7 +490,7 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout, else { BIO_write(out,title,strlen(title)); - for (i=0; i<len; i++) + for (i=0; i<(int)len; i++) { if (sep && (i != 0)) BIO_printf(out, ":"); diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c index f33ea7b84f..37f9a48206 100644 --- a/crypto/x509/by_dir.c +++ b/crypto/x509/by_dir.c @@ -198,7 +198,7 @@ static int add_cert_dir(BY_DIR *ctx, const char *dir, int type) len=(int)(p-ss); if (len == 0) continue; for (j=0; j<ctx->num_dirs; j++) - if (strlen(ctx->dirs[j]) == len && + if (strlen(ctx->dirs[j]) == (size_t)len && strncmp(ctx->dirs[j],ss,(unsigned int)len) == 0) break; if (j<ctx->num_dirs) |