From: Kurt Zeilenga Date: Sat, 26 Nov 2005 04:02:13 +0000 (+0000) Subject: Remove lint X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~684 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bfba08c1035deba940553fdbbf5e3a690017a09e;p=openldap Remove lint --- diff --git a/servers/slapd/mods.c b/servers/slapd/mods.c index f6ef580d2d..918a25a4ff 100644 --- a/servers/slapd/mods.c +++ b/servers/slapd/mods.c @@ -402,11 +402,12 @@ modify_increment_values( for( i = 0; !BER_BVISNULL( &a->a_nvals[i] ); i++ ) { char *tmp; long value; + size_t strln; if ( lutil_atol( &value, a->a_nvals[i].bv_val ) != 0 ) { *text = "modify/increment: invalid syntax of original value"; return LDAP_INVALID_SYNTAX; } - size_t strln = snprintf( str, sizeof(str), "%ld", value+incr ); + strln = snprintf( str, sizeof(str), "%ld", value+incr ); tmp = SLAP_REALLOC( a->a_nvals[i].bv_val, strln+1 ); if( tmp == NULL ) {