From: Kurt Zeilenga Date: Thu, 14 Jun 2001 02:20:05 +0000 (+0000) Subject: Remove const from salt_format X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1318 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7ee53eb12e381f1b0dede2e13292b10141a1b37d;p=openldap Remove const from salt_format --- 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;