Skip to content
Snippets Groups Projects
Commit 3250aef4 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

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

parent 74f808f4
No related branches found
No related tags found
No related merge requests found
......@@ -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 )
......
......@@ -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 );
}
}
......
......@@ -196,7 +196,7 @@ do_bind(
return;
}
if ( be->be_bind != NULL ) {
if ( be->be_bind ) {
/* alias suffix */
char *edn;
......
......@@ -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,
......
......@@ -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] );
......
......@@ -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 )
......
......@@ -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 )
......
......@@ -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 )
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment