aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorArnaud Lacombe <lacombar@gmail.com>2010-09-04 16:03:30 -0400
committerArnaud Lacombe <lacombar@gmail.com>2010-09-19 22:54:00 -0400
commit2e7a091833f014cac8a6b92573ca6cd2edd2753c (patch)
tree43ba1037f16dca5aba229a1a9b134b1ebb7b555f /scripts/kconfig
parentba6ff60d5eb47d52f1a5eb0bb6ffa751be838c46 (diff)
kconfig: constify file name
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/expr.h2
-rw-r--r--scripts/kconfig/lkc.h2
-rw-r--r--scripts/kconfig/zconf.l2
3 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h
index 6ee2e4fb1481..648c609caba0 100644
--- a/scripts/kconfig/expr.h
+++ b/scripts/kconfig/expr.h
@@ -18,7 +18,7 @@ extern "C" {
18struct file { 18struct file {
19 struct file *next; 19 struct file *next;
20 struct file *parent; 20 struct file *parent;
21 char *name; 21 const char *name;
22 int lineno; 22 int lineno;
23 int flags; 23 int flags;
24}; 24};
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h
index 5d5f1872d651..753cdbd7b805 100644
--- a/scripts/kconfig/lkc.h
+++ b/scripts/kconfig/lkc.h
@@ -76,7 +76,7 @@ FILE *zconf_fopen(const char *name);
76void zconf_initscan(const char *name); 76void zconf_initscan(const char *name);
77void zconf_nextfile(const char *name); 77void zconf_nextfile(const char *name);
78int zconf_lineno(void); 78int zconf_lineno(void);
79char *zconf_curname(void); 79const char *zconf_curname(void);
80 80
81/* conf.c */ 81/* conf.c */
82void xfgets(char *str, int size, FILE *in); 82void xfgets(char *str, int size, FILE *in);
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l
index d8f7236cb0a3..2b0265082d0a 100644
--- a/scripts/kconfig/zconf.l
+++ b/scripts/kconfig/zconf.l
@@ -353,7 +353,7 @@ int zconf_lineno(void)
353 return current_pos.lineno; 353 return current_pos.lineno;
354} 354}
355 355
356char *zconf_curname(void) 356const char *zconf_curname(void)
357{ 357{
358 return current_pos.file ? current_pos.file->name : "<none>"; 358 return current_pos.file ? current_pos.file->name : "<none>";
359} 359}