提交 cedbccab 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds

proc: more "const char *" pointers

Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 849d20a1
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册