X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/2e4a41e84029cbfa70c654fe5dfb35747f2dfbba..0393102249c30f62c8f061062bc4a9ba962b6910:/ui-repolist.c
diff --git a/ui-repolist.c b/ui-repolist.c
index e945f67..edefc4c 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -117,7 +117,7 @@ static void print_sort_header(const char *title, const char *sort)
htmlf("'>%s", title);
}
-static void print_header()
+static void print_header(void)
{
html("
");
print_sort_header("Name", "name");
@@ -223,7 +223,7 @@ struct sortcolumn {
int (*fn)(const void *a, const void *b);
};
-struct sortcolumn sortcolumn[] = {
+static const struct sortcolumn sortcolumn[] = {
{"section", sort_section},
{"name", sort_name},
{"desc", sort_desc},
@@ -234,7 +234,7 @@ struct sortcolumn sortcolumn[] = {
static int sort_repolist(char *field)
{
- struct sortcolumn *column;
+ const struct sortcolumn *column;
for (column = &sortcolumn[0]; column->name; column++) {
if (strcmp(field, column->name))
@@ -247,7 +247,7 @@ static int sort_repolist(char *field)
}
-void cgit_print_repolist()
+void cgit_print_repolist(void)
{
int i, columns = 3, hits = 0, header = 0;
char *last_section = NULL;
@@ -330,7 +330,7 @@ void cgit_print_repolist()
html("| ");
cgit_summary_link("summary", NULL, "button", NULL);
cgit_log_link("log", NULL, "button", NULL, NULL, NULL,
- 0, NULL, NULL, ctx.qry.showmsg);
+ 0, NULL, NULL, ctx.qry.showmsg, 0);
cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL);
html(" | ");
}
@@ -344,7 +344,7 @@ void cgit_print_repolist()
cgit_print_docend();
}
-void cgit_print_site_readme()
+void cgit_print_site_readme(void)
{
if (!ctx.cfg.root_readme)
return;