[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <874c4a1eded03516d6ea5c110fbd603c76052845.1284435710.git.joe@perches.com>
Date: Mon, 13 Sep 2010 21:24:00 -0700
From: Joe Perches <joe@...ches.com>
To: linux-kernel@...r.kernel.org
Cc: Alexander Viro <viro@...iv.linux.org.uk>,
linux-fsdevel@...r.kernel.org
Subject: [PATCH next 14/16] fs: Use static const char * const where possible
Signed-off-by: Joe Perches <joe@...ches.com>
---
fs/binfmt_flat.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
index 811384b..d53e0d6 100644
--- a/fs/binfmt_flat.c
+++ b/fs/binfmt_flat.c
@@ -382,7 +382,9 @@ failed:
void old_reloc(unsigned long rl)
{
#ifdef DEBUG
- char *segment[] = { "TEXT", "DATA", "BSS", "*UNKNOWN*" };
+ static const char * const segment[] = {
+ "TEXT", "DATA", "BSS", "*UNKNOWN*"
+ };
#endif
flat_v2_reloc_t r;
unsigned long *ptr;
--
1.7.3.rc1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists