ITS#3847 silence warnings

This commit is contained in:
Howard Chu 2005-07-11 10:39:32 +00:00
parent 64efba5eb2
commit 6754d025f2
6 changed files with 8 additions and 9 deletions

View File

@ -207,7 +207,7 @@ sb_sasl_pkt_length( const unsigned char *buf, int debuglevel )
| buf[1] << 16
| buf[2] << 8
| buf[3];
if ( size > SASL_MAX_BUFF_SIZE ) {
/* somebody is trying to mess me up. */
ber_log_printf( LDAP_DEBUG_ANY, debuglevel,
@ -895,7 +895,7 @@ void ldap_pvt_sasl_secprops_unparse(
comma = 0;
for ( i=0; !BER_BVISNULL( &sprops[i].key ); i++ ) {
if ( sprops[i].ival ) {
int v;
int v = 0;
switch( sprops[i].ival ) {
case GOT_MINSSF: v = secprops->min_ssf; break;
@ -928,7 +928,7 @@ void ldap_pvt_sasl_secprops_unparse(
comma = 0;
for ( i=0; !BER_BVISNULL( &sprops[i].key ); i++ ) {
if ( sprops[i].ival ) {
int v;
int v = 0;
switch( sprops[i].ival ) {
case GOT_MINSSF: v = secprops->min_ssf; break;

View File

@ -127,6 +127,7 @@ int ldap_grouping_end(
LDAPControl **cctrls,
int *msgidp )
{
return 0;
}
int ldap_grouping_end_s(
@ -137,6 +138,7 @@ int ldap_grouping_end_s(
LDAPControl **cctrls,
struct berval **retgrpdatap )
{
return 0;
}
#endif

View File

@ -130,7 +130,7 @@ ldap_parse_passwordpolicy_control(
LDAPPasswordPolicyError *errorp )
{
BerElement *ber;
int i, exp = -1, grace = -1;
int exp = -1, grace = -1;
ber_tag_t tag;
ber_len_t berLen;
char *last;

View File

@ -463,7 +463,7 @@ static int copy_hostent(
int n_alias=0;
int total_alias_len=0;
int n_addr=0;
int total_addr_len;
int total_addr_len=0;
int total_len;
/* calculate the size needed for the buffer */

View File

@ -222,7 +222,6 @@ ldap_pvt_thread_pool_submit (
if (ctx) {
LDAP_SLIST_REMOVE_HEAD(&pool->ltp_free_list, ltc_next.l);
} else {
int i;
ctx = (ldap_int_thread_ctx_t *) LDAP_MALLOC(
sizeof(ldap_int_thread_ctx_t));
if (ctx == NULL) {

View File

@ -778,9 +778,7 @@ static int chk_crypt(
const struct berval * cred,
const char **text )
{
char *cr;
unsigned int i;
int rc;
for( i=0; i<cred->bv_len; i++) {
if(cred->bv_val[i] == '\0') {
@ -817,7 +815,7 @@ static int chk_unix(
const char **text )
{
unsigned int i;
char *pw,*cr;
char *pw;
for( i=0; i<cred->bv_len; i++) {
if(cred->bv_val[i] == '\0') {