mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
function pointers are incompatible with `void *'; remove NULL or replace with 0
This commit is contained in:
parent
a81ca18845
commit
69a93a0582
@ -16,7 +16,7 @@ ldbm_back_initialize(
|
||||
)
|
||||
{
|
||||
bi->bi_open = ldbm_back_open;
|
||||
bi->bi_config = NULL;
|
||||
bi->bi_config = 0;
|
||||
bi->bi_close = ldbm_back_close;
|
||||
bi->bi_destroy = ldbm_back_destroy;
|
||||
|
||||
|
@ -14,29 +14,29 @@ passwd_back_initialize(
|
||||
BackendInfo *bi
|
||||
)
|
||||
{
|
||||
bi->bi_open = NULL;
|
||||
bi->bi_config = NULL;
|
||||
bi->bi_close = NULL;
|
||||
bi->bi_destroy = NULL;
|
||||
bi->bi_open = 0;
|
||||
bi->bi_config = 0;
|
||||
bi->bi_close = 0;
|
||||
bi->bi_destroy = 0;
|
||||
|
||||
bi->bi_db_init = NULL;
|
||||
bi->bi_db_config = NULL;
|
||||
bi->bi_db_open = NULL;
|
||||
bi->bi_db_close = NULL;
|
||||
bi->bi_db_destroy = NULL;
|
||||
bi->bi_db_init = 0;
|
||||
bi->bi_db_config = 0;
|
||||
bi->bi_db_open = 0;
|
||||
bi->bi_db_close = 0;
|
||||
bi->bi_db_destroy = 0;
|
||||
|
||||
bi->bi_op_bind = NULL;
|
||||
bi->bi_op_unbind = NULL;
|
||||
bi->bi_op_bind = 0;
|
||||
bi->bi_op_unbind = 0;
|
||||
bi->bi_op_search = passwd_back_search;
|
||||
bi->bi_op_compare = NULL;
|
||||
bi->bi_op_modify = NULL;
|
||||
bi->bi_op_modrdn = NULL;
|
||||
bi->bi_op_add = NULL;
|
||||
bi->bi_op_delete = NULL;
|
||||
bi->bi_op_abandon = NULL;
|
||||
bi->bi_op_compare = 0;
|
||||
bi->bi_op_modify = 0;
|
||||
bi->bi_op_modrdn = 0;
|
||||
bi->bi_op_add = 0;
|
||||
bi->bi_op_delete = 0;
|
||||
bi->bi_op_abandon = 0;
|
||||
|
||||
#ifdef SLAPD_ACLGROUPS
|
||||
bi->bi_acl_group = NULL;
|
||||
bi->bi_acl_group = 0;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
@ -54,14 +54,14 @@ perl_back_initialize(
|
||||
perl_run(perl_interpreter);
|
||||
|
||||
bi->bi_open = perl_back_open;
|
||||
bi->bi_config = NULL;
|
||||
bi->bi_config = 0;
|
||||
bi->bi_close = perl_back_close;
|
||||
bi->bi_destroy = perl_back_destroy;
|
||||
|
||||
bi->bi_db_init = perl_back_db_init;
|
||||
bi->bi_db_config = perl_back_db_config;
|
||||
bi->bi_db_open = NULL;
|
||||
bi->bi_db_close = NULL;
|
||||
bi->bi_db_open = 0;
|
||||
bi->bi_db_close = 0;
|
||||
bi->bi_db_destroy = perl_back_db_destroy;
|
||||
|
||||
bi->bi_op_bind = perl_back_bind;
|
||||
@ -72,10 +72,10 @@ perl_back_initialize(
|
||||
bi->bi_op_modrdn = perl_back_modrdn;
|
||||
bi->bi_op_add = perl_back_add;
|
||||
bi->bi_op_delete = perl_back_delete;
|
||||
bi->bi_op_abandon = NULL;
|
||||
bi->bi_op_abandon = 0;
|
||||
|
||||
#ifdef SLAPD_ACLGROUPS
|
||||
bi->bi_acl_group = NULL;
|
||||
bi->bi_acl_group = 0;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
@ -14,15 +14,15 @@ shell_back_initialize(
|
||||
BackendInfo *bi
|
||||
)
|
||||
{
|
||||
bi->bi_open = NULL;
|
||||
bi->bi_config = NULL;
|
||||
bi->bi_close = NULL;
|
||||
bi->bi_destroy = NULL;
|
||||
bi->bi_open = 0;
|
||||
bi->bi_config = 0;
|
||||
bi->bi_close = 0;
|
||||
bi->bi_destroy = 0;
|
||||
|
||||
bi->bi_db_init = shell_back_db_init;
|
||||
bi->bi_db_config = shell_back_db_config;
|
||||
bi->bi_db_open = NULL;
|
||||
bi->bi_db_close = NULL;
|
||||
bi->bi_db_open = 0;
|
||||
bi->bi_db_close = 0;
|
||||
bi->bi_db_destroy = shell_back_db_destroy;
|
||||
|
||||
bi->bi_op_bind = shell_back_bind;
|
||||
@ -36,7 +36,7 @@ shell_back_initialize(
|
||||
bi->bi_op_abandon = shell_back_abandon;
|
||||
|
||||
#ifdef SLAPD_ACLGROUPS
|
||||
bi->bi_acl_group = NULL;
|
||||
bi->bi_acl_group = 0;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* tcl_init.c - tcl backend initialization
|
||||
*
|
||||
* $Id: tcl_init.c,v 1.4 1999/02/18 01:18:39 bcollins Exp $
|
||||
* $Id: tcl_init.c,v 1.5 1999/02/20 07:53:48 hallvard Exp $
|
||||
*
|
||||
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
|
||||
*
|
||||
@ -39,7 +39,7 @@ tcl_back_initialize (
|
||||
ldap_pvt_thread_mutex_init (&tcl_interpreter_mutex);
|
||||
|
||||
bi->bi_open = tcl_back_open;
|
||||
bi->bi_config = NULL;
|
||||
bi->bi_config = 0;
|
||||
bi->bi_close = tcl_back_close;
|
||||
bi->bi_destroy = tcl_back_destroy;
|
||||
|
||||
@ -60,7 +60,7 @@ tcl_back_initialize (
|
||||
bi->bi_op_abandon = tcl_back_abandon;
|
||||
|
||||
#ifdef SLAPD_ACLGROUPS
|
||||
bi->bi_acl_group = NULL;
|
||||
bi->bi_acl_group = 0;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user