]> git.sur5r.net Git - openldap/commitdiff
function pointers are incompatible with `void *'; remove NULL or replace with 0
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 3 Mar 1999 17:02:10 +0000 (17:02 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 3 Mar 1999 17:02:10 +0000 (17:02 +0000)
servers/slapd/back-ldbm/init.c
servers/slapd/back-passwd/init.c
servers/slapd/back-perl/init.c
servers/slapd/back-shell/init.c
servers/slapd/back-tcl/tcl_init.c

index d2666cee2b5cfa71369c9cdab403c23b65595be5..95947769dc23650576e6fb3bae07a84ae33526b5 100644 (file)
@@ -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;
 
index e6fd2193695069eef6d80b6ae6f320a72ec4f009..ec01e90289743c63d9570835e59ff5417d0cfda9 100644 (file)
@@ -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_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_op_bind = NULL;
-       bi->bi_op_unbind = NULL;
+       bi->bi_open = 0;
+       bi->bi_config = 0;
+       bi->bi_close = 0;
+       bi->bi_destroy = 0;
+
+       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 = 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;
index e3e41d8c727b2a24929d224fa1b996e0790fbb00..560a1716c0963aa09fb410b9e6fb6c4c2589b8ca 100644 (file)
@@ -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;
index f0f1a93f6ea20a000b0a6daa13100fc4f8d12eae..261c79521097d02c90c89e4008d1c77562addf07 100644 (file)
@@ -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;
index e7e71323b8dbb6d9e6b48c6cd2cc23cbd0cd5787..925ce14f417250001be3fb27a04ac1ec880b935f 100644 (file)
@@ -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;