Browse Source

net/sunrpc: Use static const char arrays

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Joe Perches 14 years ago
parent
commit
411b5e0561
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/sunrpc/auth_gss/gss_krb5_mech.c

+ 1 - 1
net/sunrpc/auth_gss/gss_krb5_mech.c

@@ -422,7 +422,7 @@ static int
 context_derive_keys_rc4(struct krb5_ctx *ctx)
 context_derive_keys_rc4(struct krb5_ctx *ctx)
 {
 {
 	struct crypto_hash *hmac;
 	struct crypto_hash *hmac;
-	char sigkeyconstant[] = "signaturekey";
+	static const char sigkeyconstant[] = "signaturekey";
 	int slen = strlen(sigkeyconstant) + 1;	/* include null terminator */
 	int slen = strlen(sigkeyconstant) + 1;	/* include null terminator */
 	struct hash_desc desc;
 	struct hash_desc desc;
 	struct scatterlist sg[1];
 	struct scatterlist sg[1];