From 7ee53eb12e381f1b0dede2e13292b10141a1b37d Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 14 Jun 2001 02:20:05 +0000 Subject: [PATCH] Remove const from salt_format --- libraries/liblutil/passwd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/liblutil/passwd.c b/libraries/liblutil/passwd.c index f3ad3bce0f..cae60fbd1c 100644 --- a/libraries/liblutil/passwd.c +++ b/libraries/liblutil/passwd.c @@ -66,7 +66,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; @@ -1239,9 +1239,9 @@ static struct berval *hash_crypt( 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; -- 2.39.5