emile: remove ambiguity especially for Windows platform.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 17 Mar 2015 07:50:33 +0000 (08:50 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 17 Mar 2015 08:58:19 +0000 (09:58 +0100)
Thanks Vincent Torri for the review.

src/lib/emile/emile_cipher_gnutls.c
src/lib/emile/emile_cipher_openssl.c

index f3883a0..998ce88 100644 (file)
@@ -183,7 +183,7 @@ emile_pbkdf2_sha1(const char          *key,
    unsigned char tab[4];
    unsigned char *p = res;
    unsigned char *buf;
-   unsigned long i;
+   unsigned int i;
    int digest_len = 20;
    int len = res_len;
    int tmp_len;
index 6d74864..18ce5c7 100644 (file)
@@ -70,7 +70,7 @@ emile_pbkdf2_sha1(const char          *key,
    unsigned char tab[4];
    unsigned char *p = res;
    unsigned char *buf;
-   unsigned long i;
+   unsigned int i;
    int digest_len = 20;
    int len = res_len;
    int tmp_len;