]> err.no Git - linux-2.6/commitdiff
[CRYPTO] api: Removed const from cra_name/cra_driver_name
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 20 May 2006 22:45:26 +0000 (08:45 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 26 Jun 2006 07:34:40 +0000 (17:34 +1000)
We do need to change these names now and even more so in future with
instantiated algorithms.  So let's stop lying to the compiler and get
rid of the const modifiers.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/api.c
include/linux/crypto.h

index 8145310d7985dcfde689bf04dfe949d2ee6908f6..735fdedd821787d3254e97ee375438a39e81e572 100644 (file)
@@ -229,7 +229,7 @@ void crypto_free_tfm(struct crypto_tfm *tfm)
 static inline int crypto_set_driver_name(struct crypto_alg *alg)
 {
        static const char suffix[] = "-generic";
-       char *driver_name = (char *)alg->cra_driver_name;
+       char *driver_name = alg->cra_driver_name;
        int len;
 
        if (*driver_name)
index 6c013c88080f1b062c1b3eaa0070364858007c0e..7f946241b8792f9e163765d6b1d8b7a53534a3e8 100644 (file)
@@ -128,8 +128,8 @@ struct crypto_alg {
 
        int cra_priority;
 
-       const char cra_name[CRYPTO_MAX_ALG_NAME];
-       const char cra_driver_name[CRYPTO_MAX_ALG_NAME];
+       char cra_name[CRYPTO_MAX_ALG_NAME];
+       char cra_driver_name[CRYPTO_MAX_ALG_NAME];
 
        union {
                struct cipher_alg cipher;