save = argv[lasti];
argv[lasti] = NULL;
- at->at_names = charray_dup( argv );
+ at->at_names = charray_dup( (const char **) argv );
argv[lasti] = save;
code = at_add( at, &err );
static int
bdb2i_back_config_internal(
BackendInfo *bi,
- char *fname,
+ const char *fname,
int lineno,
int argc,
char **argv
int
bdb2_back_config(
BackendInfo *bi,
- char *fname,
+ const char *fname,
int lineno,
int argc,
char **argv
static int
bdb2i_back_db_config_internal(
BackendDB *be,
- char *fname,
+ const char *fname,
int lineno,
int argc,
char **argv
extern int bdb2_back_destroy LDAP_P(( BackendInfo *bi ));
extern int bdb2_back_config LDAP_P(( BackendInfo *bt,
- char *fname, int lineno, int argc, char **argv ));
+ const char *fname, int lineno, int argc, char **argv ));
extern int bdb2_back_db_init LDAP_P(( BackendDB *bd ));
extern int bdb2_back_db_open LDAP_P(( BackendDB *bd ));
int
ldap_back_db_config(
BackendDB *be,
- char *fname,
+ const char *fname,
int lineno,
int argc,
char **argv
extern int ldap_back_db_destroy LDAP_P(( BackendDB *bd ));
extern int ldap_back_db_config LDAP_P(( BackendDB *bd,
- char *fname, int lineno, int argc, char **argv ));
+ const char *fname, int lineno, int argc, char **argv ));
extern int ldap_back_bind LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op,
int
passwd_back_db_config(
BackendDB *be,
- char *fname,
+ const char *fname,
int lineno,
int argc,
char **argv
Filter *f, char *filterstr, char **attrs, int attrsonly));
extern int passwd_back_db_config LDAP_P((BackendDB *bd,
- char *fname, int lineno, int argc, char **argv ));
+ const char *fname, int lineno, int argc, char **argv ));
LDAP_END_DECL
int
perl_back_db_config(
BackendDB *be,
- char *fname,
+ const char *fname,
int lineno,
int argc,
char **argv
extern int perl_back_db_destroy LDAP_P(( BackendDB *bd ));
extern int perl_back_db_config LDAP_P(( BackendDB *bd,
- char *fname, int lineno, int argc, char **argv ));
+ const char *fname, int lineno, int argc, char **argv ));
extern int perl_back_bind LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op,
int
shell_back_db_config(
BackendDB *be,
- char *fname,
+ const char *fname,
int lineno,
int argc,
char **argv
fname, lineno );
return( 1 );
}
- si->si_bind = charray_dup( &argv[1] );
+ si->si_bind = charray_dup( (const char**) &argv[1] );
/* command + args to exec for unbinds */
} else if ( strcasecmp( argv[0], "unbind" ) == 0 ) {
fname, lineno );
return( 1 );
}
- si->si_unbind = charray_dup( &argv[1] );
+ si->si_unbind = charray_dup( (const char**) &argv[1] );
/* command + args to exec for searches */
} else if ( strcasecmp( argv[0], "search" ) == 0 ) {
fname, lineno );
return( 1 );
}
- si->si_search = charray_dup( &argv[1] );
+ si->si_search = charray_dup( (const char**) &argv[1] );
/* command + args to exec for compares */
} else if ( strcasecmp( argv[0], "compare" ) == 0 ) {
fname, lineno );
return( 1 );
}
- si->si_compare = charray_dup( &argv[1] );
+ si->si_compare = charray_dup( (const char**) &argv[1] );
/* command + args to exec for modifies */
} else if ( strcasecmp( argv[0], "modify" ) == 0 ) {
fname, lineno );
return( 1 );
}
- si->si_modify = charray_dup( &argv[1] );
+ si->si_modify = charray_dup( (const char**) &argv[1] );
/* command + args to exec for modrdn */
} else if ( strcasecmp( argv[0], "modrdn" ) == 0 ) {
fname, lineno );
return( 1 );
}
- si->si_modrdn = charray_dup( &argv[1] );
+ si->si_modrdn = charray_dup( (const char**) &argv[1] );
/* command + args to exec for add */
} else if ( strcasecmp( argv[0], "add" ) == 0 ) {
fname, lineno );
return( 1 );
}
- si->si_add = charray_dup( &argv[1] );
+ si->si_add = charray_dup( (const char**) &argv[1] );
/* command + args to exec for delete */
} else if ( strcasecmp( argv[0], "delete" ) == 0 ) {
fname, lineno );
return( 1 );
}
- si->si_delete = charray_dup( &argv[1] );
+ si->si_delete = charray_dup( (const char**) &argv[1] );
/* command + args to exec for abandon */
} else if ( strcasecmp( argv[0], "abandon" ) == 0 ) {
fname, lineno );
return( 1 );
}
- si->si_abandon = charray_dup( &argv[1] );
+ si->si_abandon = charray_dup( (const char**) &argv[1] );
/* anything else */
} else {
extern int shell_back_db_destroy LDAP_P(( BackendDB *bd ));
extern int shell_back_db_config LDAP_P(( BackendDB *bd,
- char *fname, int lineno, int argc, char **argv ));
+ const char *fname, int lineno, int argc, char **argv ));
extern int shell_back_bind LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op,
-/* $Id: external.h,v 1.6 1999/03/05 02:42:17 gomez Exp $ */
+/* $Id: external.h,v 1.7 1999/06/29 01:29:27 kdz Exp $ */
#ifndef _TCL_EXTERNAL_H
#define _TCL_EXTERNAL_H
extern int tcl_back_db_destroy LDAP_P ((BackendDB * bd));
extern int tcl_back_db_config LDAP_P ((BackendDB * bd,
- char *fname, int lineno, int argc, char **argv));
+ const char *fname, int lineno, int argc, char **argv));
extern int tcl_back_bind LDAP_P ((BackendDB * bd,
Connection * conn, Operation * op,
/* config.c - tcl backend configuration file routine
*
- * $Id: tcl_config.c,v 1.5 1999/02/19 06:55:20 bcollins Exp $
+ * $Id: tcl_config.c,v 1.6 1999/02/23 02:51:33 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
int
tcl_back_db_config (
BackendDB * bd,
- char *fname,
+ const char *fname,
int lineno,
int argc,
char **argv
* user.c
*/
#if defined(HAVE_PWD_H) && defined(HAVE_GRP_H)
-void slap_init_user LDAP_P(( const char *username, const char *groupname ));
+void slap_init_user LDAP_P(( char *username, char *groupname ));
#endif
/*