Skip to content

Commit 2e7a091

Browse files
committed
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>
1 parent ba6ff60 commit 2e7a091

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎scripts/kconfig/expr.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extern "C" {
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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ FILE *zconf_fopen(const char *name);
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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ int zconf_lineno(void)
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
}

0 commit comments

Comments
 (0)