]> git.sur5r.net Git - openldap/commitdiff
Warning cleanup: signed meets unsigned.
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 13 Oct 2008 08:13:27 +0000 (08:13 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 13 Oct 2008 08:13:27 +0000 (08:13 +0000)
libraries/liblutil/passwd.c
libraries/liblutil/utils.c

index 8dd59f908466858728710699068c8856d14ccb36..9f2559917e50f2cc3e522d9e0ed6206c820c603d 100644 (file)
@@ -716,7 +716,7 @@ static int chk_lanman(
        const struct berval *cred,
        const char **text )
 {
-       int i;
+       ber_len_t i;
        char UcasePassword[15];
        des_cblock key;
        des_key_schedule schedule;
@@ -1003,7 +1003,7 @@ static int hash_lanman(
        const char **text )
 {
 
-       int i;
+       ber_len_t i;
        char UcasePassword[15];
        des_cblock key;
        des_key_schedule schedule;
index ff37d417a05e2b3707fb148ac7e5ec488a73f5ff..afda235d81fcb9225de0b4a6216b9d831e2ed22b 100644 (file)
@@ -940,7 +940,7 @@ lutil_snprintf( char *buf, ber_len_t bufsize, char **next, ber_len_t *len, LDAP_
                *len = ret;
        }
 
-       if ( ret >= bufsize ) {
+       if ( (unsigned) ret >= bufsize ) {
                if ( next ) {
                        *next = &buf[ bufsize - 1 ];
                }