Skip to content

Commit

Permalink
[CRYPTO] api: Removed const from cra_name/cra_driver_name
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
herbertx committed Jun 26, 2006
1 parent c7fc059 commit d913ea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crypto/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions include/linux/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d913ea0

Please sign in to comment.