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
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};
scripts/kconfig/lkc.h+1−1
@@ -76,7 +76,7 @@ FILE *zconf_fopen(const char *name); · 75 unmodified lines
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);
scripts/kconfig/zconf.l+1−1
@@ -353,7 +353,7 @@ int zconf_lineno(void) · 352 unmodified lines
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}