From: Hallvard Furuseth Date: Mon, 13 Oct 2008 08:13:27 +0000 (+0000) Subject: Warning cleanup: signed meets unsigned. X-Git-Tag: ACLCHECK_0~1262 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=03a729673c851e81e026948a4ccf7457da79af11;p=openldap Warning cleanup: signed meets unsigned. --- 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 ]; }