Selaa lähdekoodia

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>
Arnaud Lacombe 14 vuotta sitten
vanhempi
commit
2e7a091833
3 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 1 1
      scripts/kconfig/expr.h
  2. 1 1
      scripts/kconfig/lkc.h
  3. 1 1
      scripts/kconfig/zconf.l

+ 1 - 1
scripts/kconfig/expr.h

@@ -18,7 +18,7 @@ extern "C" {
 struct file {
 	struct file *next;
 	struct file *parent;
-	char *name;
+	const char *name;
 	int lineno;
 	int flags;
 };

+ 1 - 1
scripts/kconfig/lkc.h

@@ -76,7 +76,7 @@ FILE *zconf_fopen(const char *name);
 void zconf_initscan(const char *name);
 void zconf_nextfile(const char *name);
 int zconf_lineno(void);
-char *zconf_curname(void);
+const char *zconf_curname(void);
 
 /* conf.c */
 void xfgets(char *str, int size, FILE *in);

+ 1 - 1
scripts/kconfig/zconf.l

@@ -353,7 +353,7 @@ int zconf_lineno(void)
 	return current_pos.lineno;
 }
 
-char *zconf_curname(void)
+const char *zconf_curname(void)
 {
 	return current_pos.file ? current_pos.file->name : "<none>";
 }