diff options
Diffstat (limited to 'source/ui-repolist.c')
-rw-r--r--source/ui-repolist.c8
1 file changed, 4 insertions, 4 deletions
diff --git a/source/ui-repolist.c b/source/ui-repolist.c
index 6dcc976..1394048 100644
--- a/source/ui-repolist.c
+++ b/source/ui-repolist.c
@@ -266,7 +266,7 @@ static void print_repo_row(const char *currenturl, int sublevel)
static void print_pager(int total, int pagelen, char *search, char *sort)
{
int i, ofs;
- char *class;
+ const char *class;
html("<nav class='pager' aria-label='Pager'><ul>\n");
for (i = 0, ofs = 0; ofs < total; i++, ofs = i * pagelen) {
@@ -375,7 +375,7 @@ static const struct sort_column sort_columns[] = {
{NULL, NULL}
};
-static int sort_repolist(char *field)
+static int sort_repolist(const char *field)
{
const struct sort_column *column;
@@ -392,7 +392,7 @@ static int sort_repolist(char *field)
void cgit_print_repolist(void)
{
- char *last_section = NULL;
+ const char *last_section = NULL;
char *currenturl;
int columns = BASE_COLUMNS;
int column_sorted = 0;
@@ -423,7 +423,7 @@ void cgit_print_repolist(void)
currenturl = cgit_currenturl();
html("<table class='list repolist' aria-label='Repositories'>\n");
for (i = 0; i < cgit_repolist.count; i++) {
- char *section;
+ const char *section;
ctx.repo = &cgit_repolist.repos[i];
if (!is_visible(ctx.repo))