All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] kernel/audit.c char *foo="bar" -> char foo[]="bar"
@ 2005-10-04 19:20 Masoud Sharbiani
  2005-10-04 19:55 ` Alexey Dobriyan
  0 siblings, 1 reply; 2+ messages in thread
From: Masoud Sharbiani @ 2005-10-04 19:20 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 545 bytes --]

Hello, 
The patch below, converts the only instance of char *foo="constant" to char *foo[]="constant"
cheers, 
Masoud

Signed-off-by: Masoud A Sharbiani <masouds@masoud.ir>

diff --git a/kernel/audit.c b/kernel/audit.c
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -787,7 +787,7 @@ void audit_log_hex(struct audit_buffer *
 	int i, avail, new_len;
 	unsigned char *ptr;
 	struct sk_buff *skb;
-	static const unsigned char *hex = "0123456789ABCDEF";
+	static const unsigned char hex[] = "0123456789ABCDEF";
 
 	BUG_ON(!ab->skb);
 	skb = ab->skb;


[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-04 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-04 19:20 [KJ] [PATCH] kernel/audit.c char *foo="bar" -> char foo[]="bar" Masoud Sharbiani
2005-10-04 19:55 ` Alexey Dobriyan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.