X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/63816ec59748c622623f20e653a7bed87f4f05a4..084ca50972b4be120eba8d22ce585766ae315c36:/ui-repolist.c diff --git a/ui-repolist.c b/ui-repolist.c index d56654d..2c98668 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -6,12 +6,6 @@ * (see COPYING for full license text) */ -/* This is needed for strcasestr to be defined by */ -#define _GNU_SOURCE 1 -#include - -#include - #include "cgit.h" #include "html.h" #include "ui-shared.h" @@ -94,7 +88,7 @@ int is_in_url(struct cgit_repo *repo) void print_sort_header(const char *title, const char *sort) { - htmlf("", columns); - html_txt(ctx.repo->section); + html_txt(section); html(""); - last_section = ctx.repo->section; + last_section = section; } htmlf("", - !sorted && ctx.repo->section ? "sublevel-repo" : "toplevel-repo"); + !sorted && section ? "sublevel-repo" : "toplevel-repo"); cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL); html(""); html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL);