X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/a6da40bf84527cbe77d1ec504e1fefb982b9a52a..HEAD:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index eef2aa8..6fae72d 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -6,6 +6,8 @@ * (see COPYING for full license text) */ +#define USE_THE_REPOSITORY_VARIABLE + #include "cgit.h" #include "ui-shared.h" #include "cmd.h" @@ -662,12 +664,12 @@ void cgit_submodule_link(const char *class, char *path, const char *rev) path[len - 1] = tail; } -const struct date_mode *cgit_date_mode(enum date_mode_type type) +const struct date_mode cgit_date_mode(enum date_mode_type type) { static struct date_mode mode; mode.type = type; mode.local = ctx.cfg.local_time; - return &mode; + return mode; } static void print_rel_date(time_t t, int tz, double value, @@ -1041,9 +1043,11 @@ static void print_header(void) html("
");