bvalue.bv_len = lutil_b64_pton( &sep[1],
bvalue.bv_val, strlen( &sep[1] ));
- if (bvalue.bv_len == -1) {
+ if (bvalue.bv_len == (ber_len_t)-1) {
fprintf(stderr, "base64 decode error\n");
exit(-1);
}
}
err = ber_printf( seber, "{b}", abs(subentries) == 1 ? 0 : 1 );
- if ( err == LBER_ERROR ) {
+ if ( err == -1 ) {
ber_free( seber, 1 );
fprintf( stderr, "Subentries control encoding error!\n" );
return EXIT_FAILURE;
}
- if ( ber_flatten2( seber, &c[i].ldctl_value, 0 ) == LBER_ERROR ) {
+ if ( ber_flatten2( seber, &c[i].ldctl_value, 0 ) == -1 ) {
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
- if ( ber_flatten2( vrber, &c[i].ldctl_value, 0 ) == LBER_ERROR ) {
+ if ( ber_flatten2( vrber, &c[i].ldctl_value, 0 ) == -1 ) {
return EXIT_FAILURE;
}
}
ber_printf( prber, "{iO}", pageSize, &cookie );
- if ( ber_flatten2( prber, &c[i].ldctl_value, 0 ) == LBER_ERROR ) {
+ if ( ber_flatten2( prber, &c[i].ldctl_value, 0 ) == -1 ) {
return EXIT_FAILURE;
}
.fi
.SH ERRORS
If an error occurs during decoding, generally these routines return
-LBER_ERROR (\-1).
+LBER_ERROR ((ber_tag_t)\-1).
.LP
.SH NOTES
.LP
.BR ber_printf ()
provides. In
general, these routines return the length of the element encoded, or
-LBER_ERROR if an error occurred.
+-1 if an error occurred.
.LP
The
.BR ber_alloc_t ()
rc = ber_printf( ber, "{siiiib{v}}", dn, scope, ali,
size, time, attrsonly, attrs );
- if( rc == LBER_ERROR ) {
+ if( rc == -1 ) {
/* error */
} else {
/* success */
}
.fi
.SH ERRORS
-If an error occurs during encoding, generally these routines return LBER_ERROR.
+If an error occurs during encoding, generally these routines return -1.
.LP
.SH NOTES
.LP
tag = ber_scanf( ber, "{o}", newpasswd );
ber_free( ber, 1 );
- if( tag == -1 ) {
+ if( tag == LBER_ERROR ) {
rc = ld->ld_errno = LDAP_DECODING_ERROR;
}
}
*/
ber_printf( ber, "{iO}", tentries, &cookie );
- if ( ber_flatten2( ber, &ctrls[0]->ldctl_value, 0 ) == LBER_ERROR ) {
+ if ( ber_flatten2( ber, &ctrls[0]->ldctl_value, 0 ) == -1 ) {
goto done;
}