]> git.sur5r.net Git - openldap/commitdiff
Remove const from salt_format
authorKurt Zeilenga <kurt@openldap.org>
Thu, 14 Jun 2001 02:20:05 +0000 (02:20 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 14 Jun 2001 02:20:05 +0000 (02:20 +0000)
libraries/liblutil/passwd.c

index f3ad3bce0f34b145fa00bc9618dad2661f466846..cae60fbd1c54c8428c0489dc4858802fd4fec12d 100644 (file)
@@ -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;