History

kconfig: constify file name

Arnaud Lacombe committed 16 years ago

Commit 2e7a0911 parent ba6ff603 files · +3 −3Browse files

Showing the changes to scripts (3 of 3 files). Show all

Unified · Split

3 files
  1. scripts/kconfig/expr.h +1 −1
  2. scripts/kconfig/lkc.h +1 −1
  3. scripts/kconfig/zconf.l +1 −1
scripts/kconfig/expr.h+1−1
@@ -18,7 +18,7 @@ extern "C" { · 17 unmodified lines
1818 struct file {
1919 struct file *next;
2020 struct file *parent;
21− char *name;
21+ const char *name;
2222 int lineno;
2323 int flags;
2424 };
scripts/kconfig/lkc.h+1−1
@@ -76,7 +76,7 @@ FILE *zconf_fopen(const char *name); · 75 unmodified lines
7676 void zconf_initscan(const char *name);
7777 void zconf_nextfile(const char *name);
7878 int zconf_lineno(void);
79−char *zconf_curname(void);
79+const char *zconf_curname(void);
8080
8181 /* conf.c */
8282 void xfgets(char *str, int size, FILE *in);
scripts/kconfig/zconf.l+1−1
@@ -353,7 +353,7 @@ int zconf_lineno(void) · 352 unmodified lines
353353 return current_pos.lineno;
354354 }
355355
356−char *zconf_curname(void)
356+const char *zconf_curname(void)
357357 {
358358 return current_pos.file ? current_pos.file->name : "<none>";
359359 }