projects/linux·commit 411b5e05

net/sunrpc: Use static const char arrays

411b5e05 · Joe Perches <[email protected]> · 2010-09-13 12:48:01 -07:00

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Commit
411b5e05617593efebc06241dbc56f42150f2abe
Parents
43c2e885

Changes

1 files changed · +1 −1

FileStatusAddDelContent
net/sunrpc/auth_gss/gss_krb5_mech.cmodified+1−1View file

net/sunrpc/auth_gss/gss_krb5_mech.c

View file
diff --git a/net/sunrpc/auth_gss/gss_krb5_mech.c b/net/sunrpc/auth_gss/gss_krb5_mech.c
index 0326446..8a4d083 100644
--- a/net/sunrpc/auth_gss/gss_krb5_mech.c
+++ b/net/sunrpc/auth_gss/gss_krb5_mech.c
@@ -422,7 +422,7 @@ static int
context_derive_keys_rc4(struct krb5_ctx *ctx)
{
struct crypto_hash *hmac;
- char sigkeyconstant[] = "signaturekey";
+ static const char sigkeyconstant[] = "signaturekey";
int slen = strlen(sigkeyconstant) + 1; /* include null terminator */
struct hash_desc desc;
struct scatterlist sg[1];