]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Replace some more overlooked index.html constants
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Wed, 1 Oct 2014 19:54:27 +0000 (21:54 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Wed, 1 Oct 2014 19:54:27 +0000 (21:54 +0200)
See commit 56b97279b03d9ff758528f6f2d6eeeff4cd3f09e for the first part of
this change.

index.c

diff --git a/index.c b/index.c
index c6065df4ea51f4e01256f092a3fa937784d01d6c..1ad06004f3e07f0cbd88ff512b3b6ec115b049fd 100644 (file)
--- 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;