Update ChangeLog for 3.0.717.
[darkstat] / html.c
diff --git a/html.c b/html.c
index 0bdd384..fe5bb68 100644 (file)
--- a/html.c
+++ b/html.c
@@ -8,7 +8,6 @@
  * GNU General Public License version 2. (see COPYING.GPL)
  */
 
-#include "darkstat.h"
 #include "config.h"
 #include "str.h"
 #include "html.h"
@@ -22,21 +21,22 @@ static const char *relpaths[] = {
     "../.."
 };
 
-void html_open(struct str *buf, const char *title, const int path_depth,
-    const int want_graph_js)
+void html_open(struct str *buf, const char *title,
+    const unsigned int path_depth, const int want_graph_js)
 {
-    assert(path_depth < (sizeof(relpaths)/sizeof(char *)));
-    const char *root = relpaths[path_depth];
+    const char *root;
+    assert(path_depth < (sizeof(relpaths)/sizeof(*relpaths)));
+    root = relpaths[path_depth];
 
     str_appendf(buf,
         "<!DOCTYPE html>\n"
         "<html>\n"
         "<head>\n"
-         "<title>%s (darkstat3 %s)</title>\n"
+         "<title>%s (darkstat %s)</title>\n"
          "<meta name=\"generator\" content=\"" PACKAGE_STRING "\">\n"
          "<meta name=\"robots\" content=\"noindex, noarchive\">\n"
-         "<link rel=\"stylesheet\" href=\"%s/style.css\" type=\"text/css\">\n"
-        , title, opt_interface, root);
+         "<link rel=\"stylesheet\" href=\"%s/style.css\" type=\"text/css\">\n",
+        title, title_interfaces, root);
 
     if (want_graph_js)
         str_appendf(buf,
@@ -67,4 +67,4 @@ void html_close(struct str *buf)
         "</html>\n");
 }
 
-/* vim:set ts=4 sw=4 tw=78 expandtab: */
+/* vim:set ts=4 sw=4 tw=80 et: */