Unified · Split
| @@ -18,7 +18,7 @@ extern "C" { · 17 unmodified lines | ||
| 18 | 18 | struct file { |
| 19 | 19 | struct file *next; |
| 20 | 20 | struct file *parent; |
| 21 | − char *name; | |
| 21 | + const char *name; | |
| 22 | 22 | int lineno; |
| 23 | 23 | int flags; |
| 24 | 24 | }; |
| @@ -76,7 +76,7 @@ FILE *zconf_fopen(const char *name); · 75 unmodified lines | ||
| 76 | 76 | void zconf_initscan(const char *name); |
| 77 | 77 | void zconf_nextfile(const char *name); |
| 78 | 78 | int zconf_lineno(void); |
| 79 | −char *zconf_curname(void); | |
| 79 | +const char *zconf_curname(void); | |
| 80 | 80 | |
| 81 | 81 | /* conf.c */ |
| 82 | 82 | void xfgets(char *str, int size, FILE *in); |
| @@ -353,7 +353,7 @@ int zconf_lineno(void) · 352 unmodified lines | ||
| 353 | 353 | return current_pos.lineno; |
| 354 | 354 | } |
| 355 | 355 | |
| 356 | −char *zconf_curname(void) | |
| 356 | +const char *zconf_curname(void) | |
| 357 | 357 | { |
| 358 | 358 | return current_pos.file ? current_pos.file->name : "<none>"; |
| 359 | 359 | } |