From: Kurt Zeilenga Date: Wed, 28 Apr 1999 20:39:40 +0000 (+0000) Subject: Make Versionstr const. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~125 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d0fb82ab318eff2a072ddce8c7eb9b9f010a83be;p=openldap Make Versionstr const. --- diff --git a/servers/slapd/Makefile.in b/servers/slapd/Makefile.in index 6b05562d6f..0be0090ec4 100644 --- a/servers/slapd/Makefile.in +++ b/servers/slapd/Makefile.in @@ -80,7 +80,7 @@ libbackends.a: .backend version.c: libbackends.a $(OBJS) $(SLAPD_LIBDEPEND) @-$(RM) $@ - $(MKVERSION) -c -s -n Versionstr slapd > $@ + $(MKVERSION) -s -n Versionstr slapd > $@ depend-local-srv: FORCE @for i in back-* shell-backends tools; do \ diff --git a/servers/slapd/monitor.c b/servers/slapd/monitor.c index 9c5d583587..8abdbb5b2f 100644 --- a/servers/slapd/monitor.c +++ b/servers/slapd/monitor.c @@ -50,7 +50,7 @@ monitor_info( Connection *conn, Operation *op ) e->e_ndn = dn_normalize_case( ch_strdup(SLAPD_MONITOR_DN) ); e->e_private = NULL; - val.bv_val = Versionstr; + val.bv_val = (char *) Versionstr; if (( p = strchr( Versionstr, '\n' )) == NULL ) { val.bv_len = strlen( Versionstr ); } else { diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index e31aff18a3..b7caa33936 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -274,7 +274,7 @@ void slap_init_user LDAP_P(( char *username, char *groupname )); extern char *default_referral; extern char *replogfile; -extern char Versionstr[]; +extern const char Versionstr[]; extern int active_threads; extern int defsize; extern int deftime;