X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-tcl%2Ftcl_config.c;h=f7ceed9a661fbf2a49c4d642f4a92fdbc114f5a1;hb=592e05e3e1a64f03151eeb9284d48b7a26823242;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..f7ceed9a66 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,21 +18,22 @@ 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 ) { struct tclinfo *ti = (struct tclinfo *) bd->be_private; - 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 +42,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