From 67c631cdc10c546abbfd55a7e51274302538239f Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 13 Jun 2012 11:23:16 -0600 Subject: [PATCH] Move var decl in puzzles.cgi.c to work with older C --- packages/00common/src/puzzles.cgi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/00common/src/puzzles.cgi.c b/packages/00common/src/puzzles.cgi.c index d81de51..2408fd7 100644 --- a/packages/00common/src/puzzles.cgi.c +++ b/packages/00common/src/puzzles.cgi.c @@ -105,6 +105,7 @@ main(int argc, char *argv[]) struct dirent *e = readdir(opt); char *cat; long maxpoints = 0; + FILE *map; if (! e) break; @@ -120,7 +121,7 @@ main(int argc, char *argv[]) } /* 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; printf("
%s
\n", cat);