function pointers are incompatible with `void *'; remove NULL or replace with 0

This commit is contained in:
Hallvard Furuseth 1999-03-03 18:49:59 +00:00
parent 74f808f44c
commit 3250aef49c
9 changed files with 11 additions and 11 deletions

View file

@ -115,7 +115,7 @@ do_add( Connection *conn, Operation *op )
* 2) this backend is master for what it holds;
* 3) it's a replica and the dn supplied is the updatedn.
*/
if ( be->be_add != NULL ) {
if ( be->be_add ) {
/* do the update here */
if ( be->be_update_ndn == NULL ||
strcmp( be->be_update_ndn, op->o_ndn ) == 0 )

View file

@ -352,7 +352,7 @@ be_db_close( void )
int i;
for ( i = 0; i < nbackends; i++ ) {
if ( backends[i].bd_info->bi_db_close != NULL ) {
if ( backends[i].bd_info->bi_db_close ) {
(*backends[i].bd_info->bi_db_close)( &backends[i] );
}
}
@ -492,7 +492,7 @@ backend_unbind(
int i;
for ( i = 0; i < nbackends; i++ ) {
if ( backends[i].be_unbind != NULL ) {
if ( backends[i].be_unbind ) {
(*backends[i].be_unbind)( &backends[i], conn, op );
}
}

View file

@ -196,7 +196,7 @@ do_bind(
return;
}
if ( be->be_bind != NULL ) {
if ( be->be_bind ) {
/* alias suffix */
char *edn;

View file

@ -76,7 +76,7 @@ do_compare(
/* alias suffix if approp */
ndn = suffixAlias( ndn, op, be );
if ( be->be_compare != NULL ) {
if ( be->be_compare ) {
(*be->be_compare)( be, conn, op, ndn, &ava );
} else {
send_ldap_result( conn, op, LDAP_UNWILLING_TO_PERFORM, NULL,

View file

@ -514,7 +514,7 @@ read_config( char *fname )
/* pass anything else to the current backend info/db config routine */
} else {
if ( bi != NULL ) {
if (bi->bi_config == NULL) {
if ( bi->bi_config == 0 ) {
Debug( LDAP_DEBUG_ANY,
"%s: line %d: unknown directive \"%s\" inside backend info definition (ignored)\n",
fname, lineno, cargv[0] );
@ -526,7 +526,7 @@ read_config( char *fname )
}
}
} else if ( be != NULL ) {
if ( be->be_config == NULL ) {
if ( be->be_config == 0 ) {
Debug( LDAP_DEBUG_ANY,
"%s: line %d: unknown directive \"%s\" inside backend database definition (ignored)\n",
fname, lineno, cargv[0] );

View file

@ -69,7 +69,7 @@ do_delete(
* 2) this backend is master for what it holds;
* 3) it's a replica and the dn supplied is the update_ndn.
*/
if ( be->be_delete != NULL ) {
if ( be->be_delete ) {
/* do the update here */
if ( be->be_update_ndn == NULL ||
strcmp( be->be_update_ndn, op->o_ndn ) == 0 )

View file

@ -152,7 +152,7 @@ do_modify(
* 2) this backend is master for what it holds;
* 3) it's a replica and the dn supplied is the update_ndn.
*/
if ( be->be_modify != NULL ) {
if ( be->be_modify ) {
/* do the update here */
if ( be->be_update_ndn == NULL ||
strcmp( be->be_update_ndn, op->o_ndn ) == 0 )

View file

@ -79,7 +79,7 @@ do_modrdn(
* 2) this backend is master for what it holds;
* 3) it's a replica and the dn supplied is the update_ndn.
*/
if ( be->be_modrdn != NULL ) {
if ( be->be_modrdn ) {
/* do the update here */
if ( be->be_update_ndn == NULL ||
strcmp( be->be_update_ndn, op->o_ndn ) == 0 )

View file

@ -145,7 +145,7 @@ do_search(
base = suffixAlias ( base, op, be );
/* actually do the search and send the result(s) */
if ( be->be_search != NULL ) {
if ( be->be_search ) {
(*be->be_search)( be, conn, op, base, scope, deref, sizelimit,
timelimit, filter, fstr, attrs, attrsonly );
} else {