X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-tcl%2Ftcl_config.c;h=64174bca83e4aea140754dc1d4fc4b94682abead;hb=403f4479bc9f9a864122d4aeecf7284408918302;hp=2b083c9ef7a5dc3bc0aca81fb9a795902348a8ab;hpb=78a5ebe216c6dbf0a57f18aa98b6247999f5dcb8;p=openldap diff --git a/servers/slapd/back-tcl/tcl_config.c b/servers/slapd/back-tcl/tcl_config.c index 2b083c9ef7..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,13 +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: tcl_config.c,v 1.2 1999/02/16 23:30:36 bcollins Exp $ - * - * $Log: tcl_config.c,v $ - * Revision 1.2 1999/02/16 23:30:36 bcollins - * fixed exit()'s to be return()'s - * */ #include "portable.h" @@ -25,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 @@ -37,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; @@ -48,22 +43,22 @@ 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