From: Hallvard Furuseth Date: Thu, 25 May 2006 16:32:43 +0000 (+0000) Subject: Constify slapd_slp_attrs (assigned a const char* in main.c:slapd_opt_slp()) X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~215 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ce44bdbc376cfbfd79d75420f17d7d1658c9bd46;p=openldap Constify slapd_slp_attrs (assigned a const char* in main.c:slapd_opt_slp()) --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 03559d6288..d437d1dbca 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -339,7 +339,7 @@ static struct slap_daemon { static char** slapd_srvurls = NULL; static SLPHandle slapd_hslp = 0; int slapd_register_slp = 0; -char *slapd_slp_attrs = NULL; +const char *slapd_slp_attrs = NULL; static SLPError slapd_slp_cookie; diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index 5abf877253..17c299d37b 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -727,7 +727,7 @@ LDAP_SLAPD_F (int) slapd_clr_read LDAP_P((ber_socket_t s, int wake)); LDAP_SLAPD_V (volatile sig_atomic_t) slapd_abrupt_shutdown; LDAP_SLAPD_V (volatile sig_atomic_t) slapd_shutdown; LDAP_SLAPD_V (int) slapd_register_slp; -LDAP_SLAPD_V (char *) slapd_slp_attrs; +LDAP_SLAPD_V (const char *) slapd_slp_attrs; LDAP_SLAPD_V (slap_ssf_t) local_ssf; LDAP_SLAPD_V (struct runqueue_s) slapd_rq;