summaryrefslogtreecommitdiff
path: root/package/config/zconf.l
diff options
context:
space:
mode:
Diffstat (limited to 'package/config/zconf.l')
-rw-r--r--package/config/zconf.l7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/config/zconf.l b/package/config/zconf.l
index d8f7236cb..3dbaec185 100644
--- a/package/config/zconf.l
+++ b/package/config/zconf.l
@@ -304,9 +304,10 @@ void zconf_nextfile(const char *name)
memset(buf, 0, sizeof(*buf));
current_buf->state = YY_CURRENT_BUFFER;
- yyin = zconf_fopen(name);
+ yyin = zconf_fopen(file->name);
if (!yyin) {
- printf("%s:%d: can't open file \"%s\"\n", zconf_curname(), zconf_lineno(), name);
+ printf("%s:%d: can't open file \"%s\"\n",
+ zconf_curname(), zconf_lineno(), file->name);
exit(1);
}
yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE));
@@ -353,7 +354,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>";
}