X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-tcl%2Ftcl_config.c;h=64174bca83e4aea140754dc1d4fc4b94682abead;hb=403f4479bc9f9a864122d4aeecf7284408918302;hp=9030be75afb164ca14d5fd9a31cf8973bcbac97c;hpb=86e156875227c08d0b8ba37a66c4cf6e20c2a22c;p=openldap diff --git a/servers/slapd/back-tcl/tcl_config.c b/servers/slapd/back-tcl/tcl_config.c index 9030be75af..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. * @@ -7,10 +7,6 @@ * as authorized by the OpenLDAP Public License. A copy of this * license is available at http://www.OpenLDAP.org/license.html or * in file LICENSE in the top-level directory of the distribution. - * - * $Id$ - * - * $Log$ */ #include "portable.h" @@ -22,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 @@ -34,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); - return( 1 ); + return (1); } if (ti->ti_ii == NULL) { ti->ti_ii = global_i; @@ -45,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