From: Frederic Marchal Date: Wed, 1 Oct 2014 19:54:27 +0000 (+0200) Subject: Replace some more overlooked index.html constants X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2d39aedfe80a510b71604152a074f4147bfa1d8;p=thirdparty%2Fsarg.git Replace some more overlooked index.html constants See commit 56b97279b03d9ff758528f6f2d6eeeff4cd3f09e for the first part of this change. --- diff --git a/index.c b/index.c index c6065df..1ad0600 100644 --- a/index.c +++ b/index.c @@ -41,7 +41,7 @@ void make_index(void) if(LastLog > 0) mklastlog(outdir); if(Index == INDEX_NO) { - sprintf(wdir,"%sindex.html",outdir); + sprintf(wdir,"%s"INDEX_HTML_FILE,outdir); if(access(wdir, R_OK) == 0) { if (unlink(wdir)) { debuga(_("Cannot delete \"%s\": %s\n"),wdir,strerror(errno)); @@ -108,7 +108,7 @@ static void make_date_index(void) int i, y, m, d; int order; - sprintf(yearindex,"%sindex.html",outdir); + sprintf(yearindex,"%s"INDEX_HTML_FILE,outdir); nyears=0; if ((dirp = opendir(outdir)) == NULL) { @@ -331,7 +331,7 @@ static void make_file_index(void) char date[60]; } **sortlist, *item, **tempsort; - sprintf(wdir,"%sindex.html",outdir); + sprintf(wdir,"%s"INDEX_HTML_FILE,outdir); order=(strcmp(IndexSortOrder,"A") == 0) ? 1 : -1;