From 9cdcd58afcf89d0536e5b263744e73fa2f34a7e0 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 6 Apr 2008 20:04:10 +0000 Subject: [PATCH] constify 1st arg to register_at()/register_at(), needed for config.h rev 1.50 --- servers/slapd/at.c | 2 +- servers/slapd/oc.c | 2 +- servers/slapd/proto-slap.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/at.c b/servers/slapd/at.c index 854c81b3bc..04c0d0168e 100644 --- a/servers/slapd/at.c +++ b/servers/slapd/at.c @@ -1031,7 +1031,7 @@ at_schema_info( Entry *e ) } int -register_at( char *def, AttributeDescription **rad, int dupok ) +register_at( const char *def, AttributeDescription **rad, int dupok ) { LDAPAttributeType *at; int code, freeit = 0; diff --git a/servers/slapd/oc.c b/servers/slapd/oc.c index 0dd04d75c7..b6d574be67 100644 --- a/servers/slapd/oc.c +++ b/servers/slapd/oc.c @@ -896,7 +896,7 @@ oc_schema_info( Entry *e ) } int -register_oc( char *def, ObjectClass **soc, int dupok ) +register_oc( const char *def, ObjectClass **soc, int dupok ) { LDAPObjectClass *oc; int code; diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index ab01ad65bb..ef6e454115 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -248,7 +248,7 @@ LDAP_SLAPD_F (void) at_unparse LDAP_P(( BerVarray *bva, AttributeType *start, AttributeType *end, int system )); LDAP_SLAPD_F (int) register_at LDAP_P(( - char *at, + const char *at, AttributeDescription **ad, int dupok )); @@ -1368,7 +1368,7 @@ LDAP_SLAPD_F (void) oc_unparse LDAP_P(( BerVarray *bva, ObjectClass *start, ObjectClass *end, int system )); LDAP_SLAPD_F (int) register_oc LDAP_P(( - char *desc, + const char *desc, ObjectClass **oc, int dupok )); -- 2.39.5