X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-tcl%2Ftcl_config.c;h=64174bca83e4aea140754dc1d4fc4b94682abead;hb=403f4479bc9f9a864122d4aeecf7284408918302;hp=196b2d639e4b09d49cd91b66d407892acbb4dc64;hpb=a71f328831a79488d311c639b98bc67200a7f826;p=openldap diff --git a/servers/slapd/back-tcl/tcl_config.c b/servers/slapd/back-tcl/tcl_config.c index 196b2d639e..64174bca83 100644 --- a/servers/slapd/back-tcl/tcl_config.c +++ b/servers/slapd/back-tcl/tcl_config.c @@ -1,5 +1,5 @@ -/* - * config.c - tcl backend configuration file routine +/* $OpenLDAP$ */ +/* config.c - tcl backend configuration file routine * * Copyright 1999, Ben Collins , All rights reserved. * @@ -18,9 +18,10 @@ struct i_info *global_i; -int tcl_back_db_config ( +int +tcl_back_db_config ( BackendDB * bd, - char *fname, + const char *fname, int lineno, int argc, char **argv @@ -30,9 +31,10 @@ int tcl_back_db_config ( int script_loaded = 0; if (ti == NULL) { - fprintf (stderr, "%s: line %d: tcl backend info is null!\n", fname, + fprintf (stderr, + "%s: line %d: tcl backend info is null!\n", fname, lineno); - exit (1); + return (1); } if (ti->ti_ii == NULL) { ti->ti_ii = global_i; @@ -41,179 +43,140 @@ int tcl_back_db_config ( /* Script to load */ if (strcasecmp (argv[0], "scriptpath") == 0) { if (argc < 2) { - Debug (LDAP_DEBUG_ANY, + Debug (LDAP_DEBUG_CONFIG, "%s: line %d: missing script in \"scriptpath