From: Masoud Sharbiani <masouds@masoud.ir>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH] kernel/audit.c char *foo="bar" -> char foo[]="bar"
Date: Tue, 04 Oct 2005 19:20:32 +0000 [thread overview]
Message-ID: <20051004192032.GA10626@masoud.ir> (raw)
[-- 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
next reply other threads:[~2005-10-04 19:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-04 19:20 Masoud Sharbiani [this message]
2005-10-04 19:55 ` [KJ] [PATCH] kernel/audit.c char *foo="bar" -> char foo[]="bar" Alexey Dobriyan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051004192032.GA10626@masoud.ir \
--to=masouds@masoud.ir \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.