Commit d9bc3929 authored by Randy Dunlap's avatar Randy Dunlap Committed by Greg Kroah-Hartman

[PATCH] janitor: use char arrays for strings

From: maximilian attems <janitor@sternwelten.at>

Use char arrays instead of char* for strings:
 a. uses a single variable instead of two.
 b. shorter code.
 c. __initdata will be completely dropped.
parent 3fa99ba8
...@@ -1670,10 +1670,10 @@ static struct file_system_type ntfs_fs_type = { ...@@ -1670,10 +1670,10 @@ static struct file_system_type ntfs_fs_type = {
}; };
/* Stable names for the slab caches. */ /* Stable names for the slab caches. */
static const char *ntfs_attr_ctx_cache_name = "ntfs_attr_ctx_cache"; static const char ntfs_attr_ctx_cache_name[] = "ntfs_attr_ctx_cache";
static const char *ntfs_name_cache_name = "ntfs_name_cache"; static const char ntfs_name_cache_name[] = "ntfs_name_cache";
static const char *ntfs_inode_cache_name = "ntfs_inode_cache"; static const char ntfs_inode_cache_name[] = "ntfs_inode_cache";
static const char *ntfs_big_inode_cache_name = "ntfs_big_inode_cache"; static const char ntfs_big_inode_cache_name[] = "ntfs_big_inode_cache";
static int __init init_ntfs_fs(void) static int __init init_ntfs_fs(void)
{ {
......
...@@ -574,7 +574,7 @@ int reiserfs_journal_in_proc( char *buffer, char **start, off_t offset, ...@@ -574,7 +574,7 @@ int reiserfs_journal_in_proc( char *buffer, char **start, off_t offset,
static struct proc_dir_entry *proc_info_root = NULL; static struct proc_dir_entry *proc_info_root = NULL;
static const char *proc_info_root_name = "fs/reiserfs"; static const char proc_info_root_name[] = "fs/reiserfs";
int reiserfs_proc_info_init( struct super_block *sb ) int reiserfs_proc_info_init( struct super_block *sb )
{ {
......
...@@ -53,7 +53,7 @@ static void push_hdr(const char *s) ...@@ -53,7 +53,7 @@ static void push_hdr(const char *s)
static void cpio_trailer(void) static void cpio_trailer(void)
{ {
char s[256]; char s[256];
const char *name = "TRAILER!!!"; const char name[] = "TRAILER!!!";
sprintf(s, "%s%08X%08X%08lX%08lX%08X%08lX" sprintf(s, "%s%08X%08X%08lX%08lX%08X%08lX"
"%08X%08X%08X%08X%08X%08ZX%08X", "%08X%08X%08X%08X%08X%08ZX%08X",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment