From 7e4aab18ecc96d9d75a22f8a66eee1376ba6ad2e Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 14 Jun 2001 02:19:32 +0000 Subject: [PATCH] remove const from salt_format --- libraries/liblutil/passwd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;