Fix Win32 warnings.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 18 Feb 2007 17:23:20 +0000 (17:23 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 18 Feb 2007 17:23:20 +0000 (17:23 +0000)
apps/dgst.c
crypto/x509/by_dir.c

index 4bb701551fe0172038d57175b508561a1ed1f6d5..09d093451938d2ee3528d2073a2660b8e43cb161 100644 (file)
@@ -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, ":");
index f33ea7b84f2529a683bb6bded6d9be179253a01d..37f9a48206932faf27492ea2f06a72682c049429 100644 (file)
@@ -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)