diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2014-08-08 14:21:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 15:57:22 -0700 |
commit | cedbccab8bb104a1e2d6b40e3db2159b30c6cd76 (patch) | |
tree | 9fd96838fdcade9fc2fc8e83985dc05acd223ddb | |
parent | 849d20a12822cba355c054ab0bfe490473413cce (diff) | |
download | op-kernel-dev-cedbccab8bb104a1e2d6b40e3db2159b30c6cd76.zip op-kernel-dev-cedbccab8bb104a1e2d6b40e3db2159b30c6cd76.tar.gz |
proc: more "const char *" pointers
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/proc/base.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 35afb2e..0e76895 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -105,7 +105,7 @@ */ struct pid_entry { - char *name; + const char *name; int len; umode_t mode; const struct inode_operations *iop; @@ -418,8 +418,8 @@ static int proc_oom_score(struct task_struct *task, char *buffer) } struct limit_names { - char *name; - char *unit; + const char *name; + const char *unit; }; static const struct limit_names lnames[RLIM_NLIMITS] = { @@ -2056,7 +2056,7 @@ static int show_timer(struct seq_file *m, void *v) struct k_itimer *timer; struct timers_private *tp = m->private; int notify; - static char *nstr[] = { + static const char * const nstr[] = { [SIGEV_SIGNAL] = "signal", [SIGEV_NONE] = "none", [SIGEV_THREAD] = "thread", |