re-fix ITS#6645 commit

This commit is contained in:
Pierangelo Masarati 2010-12-07 11:58:38 +00:00
parent 615d1c7703
commit 351bc07fcc
2 changed files with 8 additions and 4 deletions

View file

@ -234,9 +234,13 @@ parse_slapopt( int tool, int *mode )
if ( strcasecmp( p, "no" ) == 0 ) {
ldif_wrap = LDIF_LINE_WIDTH_MAX;
} else if ( lutil_atou( &ldif_wrap, p ) ) {
Debug( LDAP_DEBUG_ANY, "unable to parse ldif-wrap=\"%s\".\n", p, 0, 0 );
return -1;
} else {
unsigned int u;
if ( lutil_atou( &u, p ) ) {
Debug( LDAP_DEBUG_ANY, "unable to parse ldif-wrap=\"%s\".\n", p, 0, 0 );
return -1;
}
ldif_wrap = (ber_len_t)u;
}
break;

View file

@ -65,7 +65,7 @@ typedef struct tool_vars {
slap_ssf_t tv_sasl_ssf;
unsigned tv_dn_mode;
unsigned int tv_csnsid;
unsigned int tv_ldif_wrap;
ber_len_t tv_ldif_wrap;
char tv_maxcsnbuf[ LDAP_PVT_CSNSTR_BUFSIZE * ( SLAP_SYNC_SID_MAX + 1 ) ];
struct berval tv_maxcsn[ SLAP_SYNC_SID_MAX + 1 ];
} tool_vars;