]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
shared.c: use execvp() to execute filter commands
[ps-cgit] / ui-repolist.c
index 0a0b6ca19e942f0ddcb52128594f8584aab8c12c..05b4548fab2f0a4de2230e5f46ece7c90588a91f 100644 (file)
@@ -6,12 +6,6 @@
  *   (see COPYING for full license text)
  */
 
-/* This is needed for strcasestr to be defined by <string.h> */
-#define _GNU_SOURCE 1
-#include <string.h>
-
-#include <time.h>
-
 #include "cgit.h"
 #include "html.h"
 #include "ui-shared.h"
@@ -297,7 +291,7 @@ void cgit_print_site_readme()
        if (!ctx.cfg.root_readme)
                return;
        if (ctx.cfg.about_filter)
-               cgit_open_filter(ctx.cfg.about_filter);
+               cgit_open_filter(ctx.cfg.about_filter, NULL);
        html_include(ctx.cfg.root_readme);
        if (ctx.cfg.about_filter)
                cgit_close_filter(ctx.cfg.about_filter);