mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 10:09:43 -05:00
constify ldap_int_put_controls, ldap_control_dup, ldap_controls_dup
This commit is contained in:
parent
4e80e9b9f2
commit
2cc187ffbf
2 changed files with 11 additions and 8 deletions
|
|
@ -28,12 +28,13 @@
|
|||
* ldap_int_put_controls
|
||||
*/
|
||||
|
||||
int ldap_int_put_controls(
|
||||
int
|
||||
ldap_int_put_controls(
|
||||
LDAP *ld,
|
||||
LDAPControl **ctrls,
|
||||
LDAPControl *const *ctrls,
|
||||
BerElement *ber )
|
||||
{
|
||||
LDAPControl **c;
|
||||
LDAPControl *const *c;
|
||||
|
||||
assert( ld != NULL );
|
||||
assert( ber != NULL );
|
||||
|
|
@ -261,7 +262,8 @@ ldap_controls_free( LDAPControl **controls )
|
|||
/*
|
||||
* Duplicate an array of LDAPControl
|
||||
*/
|
||||
LDAPControl **ldap_controls_dup( LDAPControl **controls )
|
||||
LDAPControl **
|
||||
ldap_controls_dup( LDAPControl *const *controls )
|
||||
{
|
||||
LDAPControl **new;
|
||||
int i;
|
||||
|
|
@ -303,7 +305,8 @@ LDAPControl **ldap_controls_dup( LDAPControl **controls )
|
|||
/*
|
||||
* Duplicate a LDAPControl
|
||||
*/
|
||||
LDAPControl *ldap_control_dup( LDAPControl *c )
|
||||
LDAPControl *
|
||||
ldap_control_dup( const LDAPControl *c )
|
||||
{
|
||||
LDAPControl *new;
|
||||
|
||||
|
|
|
|||
|
|
@ -303,10 +303,10 @@ int ldap_check_cache LDAP_P(( LDAP *ld, ber_tag_t msgtype, BerElement *request )
|
|||
* in controls.c
|
||||
*/
|
||||
LDAPControl *ldap_control_dup LDAP_P((
|
||||
LDAPControl *ctrl ));
|
||||
const LDAPControl *ctrl ));
|
||||
|
||||
LDAPControl **ldap_controls_dup LDAP_P((
|
||||
LDAPControl **ctrls ));
|
||||
LDAPControl *const *ctrls ));
|
||||
|
||||
int ldap_int_get_controls LDAP_P((
|
||||
BerElement *be,
|
||||
|
|
@ -314,7 +314,7 @@ int ldap_int_get_controls LDAP_P((
|
|||
|
||||
int ldap_int_put_controls LDAP_P((
|
||||
LDAP *ld,
|
||||
LDAPControl **ctrls,
|
||||
LDAPControl *const *ctrls,
|
||||
BerElement *ber ));
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue