Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e7a0918 authored by Arnaud Lacombe's avatar Arnaud Lacombe
Browse files

kconfig: constify file name

parent ba6ff60d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@ extern "C" {
struct file {
struct file {
	struct file *next;
	struct file *next;
	struct file *parent;
	struct file *parent;
	char *name;
	const char *name;
	int lineno;
	int lineno;
	int flags;
	int flags;
};
};
+1 −1
Original line number Original line Diff line number Diff line
@@ -76,7 +76,7 @@ FILE *zconf_fopen(const char *name);
void zconf_initscan(const char *name);
void zconf_initscan(const char *name);
void zconf_nextfile(const char *name);
void zconf_nextfile(const char *name);
int zconf_lineno(void);
int zconf_lineno(void);
char *zconf_curname(void);
const char *zconf_curname(void);


/* conf.c */
/* conf.c */
void xfgets(char *str, int size, FILE *in);
void xfgets(char *str, int size, FILE *in);
+1 −1
Original line number Original line Diff line number Diff line
@@ -353,7 +353,7 @@ int zconf_lineno(void)
	return current_pos.lineno;
	return current_pos.lineno;
}
}


char *zconf_curname(void)
const char *zconf_curname(void)
{
{
	return current_pos.file ? current_pos.file->name : "<none>";
	return current_pos.file ? current_pos.file->name : "<none>";
}
}