From 03a729673c851e81e026948a4ccf7457da79af11 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 13 Oct 2008 08:13:27 +0000 Subject: [PATCH] Warning cleanup: signed meets unsigned. --- libraries/liblutil/passwd.c | 4 ++-- libraries/liblutil/utils.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ]; } -- 2.39.5