X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=opts.c;h=1d8fd73597d6f4ae0d2861347e6422f466bc9891;hp=27d6a560473ead2f183a8adbeffc95c3fd470901;hb=4d0bf1607a8105201190233c60556d1f8b307f21;hpb=90824c209329d73b9bdad86177348d18562891ab diff --git a/opts.c b/opts.c index 27d6a56..1d8fd73 100644 --- a/opts.c +++ b/opts.c @@ -213,7 +213,7 @@ static char *opts_ini_next(const char *s, char c) { } static size_t opts_ini_parse ( - FILE *filehandle, + fs_file_t *filehandle, char *(*loadhandle)(const char *, const char *, const char *), char **errorhandle ) { @@ -230,7 +230,7 @@ static size_t opts_ini_parse ( char *read_name; char *read_value; - while (fs_file_getline(&line, &linesize, filehandle) != EOF) { + while (fs_file_getline(&line, &linesize, filehandle) != FS_FILE_EOF) { parse_beg = line; /* handle BOM */ @@ -380,7 +380,7 @@ void opts_ini_init(const char *file) { */ char *error = NULL; size_t line; - FILE *ini; + fs_file_t *ini; if (!file) { /* try ini */