From: Kurt Zeilenga Date: Thu, 14 Jun 2001 02:19:32 +0000 (+0000) Subject: remove const from salt_format X-Git-Tag: OPENLDAP_REL_ENG_2_0_12~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e4aab18ecc96d9d75a22f8a66eee1376ba6ad2e;p=thirdparty%2Fopenldap.git remove const from salt_format --- diff --git a/libraries/liblutil/passwd.c b/libraries/liblutil/passwd.c index a2cb60828a..f73549f87e 100644 --- a/libraries/liblutil/passwd.c +++ b/libraries/liblutil/passwd.c @@ -58,7 +58,7 @@ static const unsigned char crypt64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890./"; #ifdef SLAPD_CRYPT -static const char *salt_format = NULL; +static char *salt_format = NULL; #endif struct pw_scheme; @@ -1065,12 +1065,12 @@ static struct berval *hash_crypt( } #endif -int lutil_salt_format(const char *format) +int lutil_salt_format( const char *format) { #ifdef SLAPD_CRYPT - free(salt_format); + free( salt_format ); - salt_format = format != NULL ? strdup(format) : NULL; + salt_format = format != NULL ? strdup( format ) : NULL; #endif return 0;