]> git.sur5r.net Git - openldap/commitdiff
Make Versionstr const.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 28 Apr 1999 20:39:40 +0000 (20:39 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 28 Apr 1999 20:39:40 +0000 (20:39 +0000)
servers/slapd/Makefile.in
servers/slapd/monitor.c
servers/slapd/proto-slap.h

index 6b05562d6f7514a031fbd9b868172d5bea732f08..0be0090ec4661af83a9cea06acdd8517160242d5 100644 (file)
@@ -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 \
index 9c5d5835875b99b97126e235b7326d084a5648e7..8abdbb5b2fcc5c8de50d4984be9142e782277656 100644 (file)
@@ -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 {
index e31aff18a3a4b212abe4d0cd0a69ba7456c21c23..b7caa339364e0b579eafd2a7acd0a1690e49d713 100644 (file)
@@ -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;