* [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
* Re: [KJ] [PATCH] kernel/audit.c char *foo="bar" -> char foo[]="bar"
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
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Dobriyan @ 2005-10-04 19:55 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 477 bytes --]
On Tue, Oct 04, 2005 at 03:20:32PM -0400, Masoud Sharbiani wrote:
> The patch below, converts the only instance of char *foo="constant"
> to char *foo[]="constant"
All gccs here agreed that the size of kernel/audit.o will become
smaller. Applied.
> --- a/kernel/audit.c
> +++ b/kernel/audit.c
> @@ -787,7 +787,7 @@ void audit_log_hex(struct audit_buffer *
> - static const unsigned char *hex = "0123456789ABCDEF";
> + static const unsigned char hex[] = "0123456789ABCDEF";
[-- 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.