fix previous (obviously broken) commit

This commit is contained in:
Pierangelo Masarati 2009-02-10 14:19:17 +00:00
parent c93f15514d
commit a7ca1bbc68
5 changed files with 9 additions and 10 deletions

View file

@ -343,7 +343,7 @@ do_bind( char *uri, char *dn, struct berval *pass, int maxloop,
rc = ldap_sasl_bind_s( ld, dn, LDAP_SASL_SIMPLE, pass, NULL, NULL, NULL );
if ( rc ) {
unsigned first = tester_ignore_err( rc );
int first = tester_ignore_err( rc );
/* if ignore.. */
if ( first ) {

View file

@ -40,8 +40,8 @@ tester_t progtype;
#define TESTER_SERVER_LAST (LDAP_OTHER + 1)
#define TESTER_CLIENT_LAST (- LDAP_REFERRAL_LIMIT_EXCEEDED + 1)
static unsigned ignore_server[ TESTER_SERVER_LAST ];
static unsigned ignore_client[ TESTER_CLIENT_LAST ];
static int ignore_server[ TESTER_SERVER_LAST ];
static int ignore_client[ TESTER_CLIENT_LAST ];
static struct {
char *name;
@ -126,8 +126,7 @@ static struct {
static int
tester_ignore_str2err( const char *err )
{
int i;
unsigned ignore = 1;
int i, ignore = 1;
if ( strcmp( err, "ALL" ) == 0 ) {
for ( i = 0; ignore_str2err[ i ].name != NULL; i++ ) {
@ -187,10 +186,10 @@ tester_ignore_str2errlist( const char *err )
return 0;
}
unsigned
int
tester_ignore_err( int err )
{
unsigned rc = 1;
int rc = 1;
if ( err > 0 ) {
if ( err < TESTER_SERVER_LAST ) {

View file

@ -37,7 +37,7 @@ extern void tester_error( const char *msg );
extern void tester_perror( const char *fname, const char *msg );
extern void tester_ldap_error( LDAP *ld, const char *fname, const char *msg );
extern int tester_ignore_str2errlist( const char *err );
extern unsigned tester_ignore_err( int err );
extern int tester_ignore_err( int err );
extern pid_t pid;

View file

@ -389,7 +389,7 @@ retry:;
}
if ( rc ) {
unsigned first = tester_ignore_err( rc );
int first = tester_ignore_err( rc );
char buf[ BUFSIZ ];
snprintf( buf, sizeof( buf ), "ldap_search_ext_s(%s)", entry );

View file

@ -443,7 +443,7 @@ retry:;
}
if ( rc ) {
unsigned first = tester_ignore_err( rc );
int first = tester_ignore_err( rc );
/* if ignore.. */
if ( first ) {
/* only log if first occurrence */