mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
more const'ification
This commit is contained in:
parent
3f85d6b2ac
commit
8ac21b67a1
@ -321,7 +321,7 @@ attr_syntax_config(
|
||||
|
||||
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 );
|
||||
|
@ -13,7 +13,7 @@
|
||||
static int
|
||||
bdb2i_back_config_internal(
|
||||
BackendInfo *bi,
|
||||
char *fname,
|
||||
const char *fname,
|
||||
int lineno,
|
||||
int argc,
|
||||
char **argv
|
||||
@ -64,7 +64,7 @@ bdb2i_back_config_internal(
|
||||
int
|
||||
bdb2_back_config(
|
||||
BackendInfo *bi,
|
||||
char *fname,
|
||||
const char *fname,
|
||||
int lineno,
|
||||
int argc,
|
||||
char **argv
|
||||
@ -85,7 +85,7 @@ bdb2_back_config(
|
||||
static int
|
||||
bdb2i_back_db_config_internal(
|
||||
BackendDB *be,
|
||||
char *fname,
|
||||
const char *fname,
|
||||
int lineno,
|
||||
int argc,
|
||||
char **argv
|
||||
|
@ -9,7 +9,7 @@ extern int bdb2_back_close LDAP_P(( BackendInfo *bi ));
|
||||
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 ));
|
||||
|
@ -34,7 +34,7 @@
|
||||
int
|
||||
ldap_back_db_config(
|
||||
BackendDB *be,
|
||||
char *fname,
|
||||
const char *fname,
|
||||
int lineno,
|
||||
int argc,
|
||||
char **argv
|
||||
|
@ -12,7 +12,7 @@ extern int ldap_back_db_init LDAP_P(( BackendDB *bd ));
|
||||
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,
|
||||
|
@ -14,7 +14,7 @@
|
||||
int
|
||||
passwd_back_db_config(
|
||||
BackendDB *be,
|
||||
char *fname,
|
||||
const char *fname,
|
||||
int lineno,
|
||||
int argc,
|
||||
char **argv
|
||||
|
@ -11,7 +11,7 @@ extern int passwd_back_search LDAP_P(( BackendDB *be,
|
||||
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
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
int
|
||||
perl_back_db_config(
|
||||
BackendDB *be,
|
||||
char *fname,
|
||||
const char *fname,
|
||||
int lineno,
|
||||
int argc,
|
||||
char **argv
|
||||
|
@ -12,7 +12,7 @@ extern int perl_back_db_init LDAP_P(( BackendDB *bd ));
|
||||
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,
|
||||
|
@ -13,7 +13,7 @@
|
||||
int
|
||||
shell_back_db_config(
|
||||
BackendDB *be,
|
||||
char *fname,
|
||||
const char *fname,
|
||||
int lineno,
|
||||
int argc,
|
||||
char **argv
|
||||
@ -35,7 +35,7 @@ shell_back_db_config(
|
||||
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 ) {
|
||||
@ -45,7 +45,7 @@ shell_back_db_config(
|
||||
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 ) {
|
||||
@ -55,7 +55,7 @@ shell_back_db_config(
|
||||
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 ) {
|
||||
@ -65,7 +65,7 @@ shell_back_db_config(
|
||||
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 ) {
|
||||
@ -75,7 +75,7 @@ shell_back_db_config(
|
||||
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 ) {
|
||||
@ -85,7 +85,7 @@ shell_back_db_config(
|
||||
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 ) {
|
||||
@ -95,7 +95,7 @@ shell_back_db_config(
|
||||
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 ) {
|
||||
@ -105,7 +105,7 @@ shell_back_db_config(
|
||||
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 ) {
|
||||
@ -115,7 +115,7 @@ shell_back_db_config(
|
||||
fname, lineno );
|
||||
return( 1 );
|
||||
}
|
||||
si->si_abandon = charray_dup( &argv[1] );
|
||||
si->si_abandon = charray_dup( (const char**) &argv[1] );
|
||||
|
||||
/* anything else */
|
||||
} else {
|
||||
|
@ -12,7 +12,7 @@ extern int shell_back_db_init LDAP_P(( BackendDB *bd ));
|
||||
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,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $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
|
||||
@ -16,7 +16,7 @@ extern int tcl_back_db_close LDAP_P ((BackendDB * bd));
|
||||
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,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* 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.
|
||||
*
|
||||
@ -22,7 +22,7 @@ struct i_info *global_i;
|
||||
int
|
||||
tcl_back_db_config (
|
||||
BackendDB * bd,
|
||||
char *fname,
|
||||
const char *fname,
|
||||
int lineno,
|
||||
int argc,
|
||||
char **argv
|
||||
|
@ -416,7 +416,7 @@ int value_find LDAP_P(( struct berval **vals, struct berval *v, int syntax,
|
||||
* 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
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user