diff --git a/libraries/liblutil/passwd.c b/libraries/liblutil/passwd.c index 8dd59f9084..9f2559917e 100644 --- a/libraries/liblutil/passwd.c +++ b/libraries/liblutil/passwd.c @@ -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; diff --git a/libraries/liblutil/utils.c b/libraries/liblutil/utils.c index ff37d417a0..afda235d81 100644 --- a/libraries/liblutil/utils.c +++ b/libraries/liblutil/utils.c @@ -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 ]; }