mirror of https://github.com/dirtbags/moth.git
Move var decl in puzzles.cgi.c to work with older C
This commit is contained in:
parent
86cc9c3524
commit
67c631cdc1
|
@ -105,6 +105,7 @@ main(int argc, char *argv[])
|
||||||
struct dirent *e = readdir(opt);
|
struct dirent *e = readdir(opt);
|
||||||
char *cat;
|
char *cat;
|
||||||
long maxpoints = 0;
|
long maxpoints = 0;
|
||||||
|
FILE *map;
|
||||||
|
|
||||||
if (! e) break;
|
if (! e) break;
|
||||||
|
|
||||||
|
@ -120,7 +121,7 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read in category's map file, print html until point limit reached */
|
/* Read in category's map file, print html until point limit reached */
|
||||||
FILE *map = fopen(package_path("%s/map.txt", cat), "r");
|
map = fopen(package_path("%s/map.txt", cat), "r");
|
||||||
if (map == NULL) continue;
|
if (map == NULL) continue;
|
||||||
|
|
||||||
printf(" <dt>%s</dt>\n", cat);
|
printf(" <dt>%s</dt>\n", cat);
|
||||||
|
|
Loading…
Reference in New Issue