]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
remove const from salt_format
authorKurt Zeilenga <kurt@openldap.org>
Thu, 14 Jun 2001 02:19:32 +0000 (02:19 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 14 Jun 2001 02:19:32 +0000 (02:19 +0000)
libraries/liblutil/passwd.c

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