From bd9fb0324d776aa5583a70a6125fce47697701b1 Mon Sep 17 00:00:00 2001 From: John Keeping Date: Sun, 8 Mar 2015 16:32:23 +0000 Subject: ui-stats: make cgit_period definitions 'static const' These definitions should not be modified (and never are) so we can move them to .rodata. Signed-off-by: John Keeping --- ui-stats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-stats.h') diff --git a/ui-stats.h b/ui-stats.h index 341ab13..0e61b03 100644 --- a/ui-stats.h +++ b/ui-stats.h @@ -20,7 +20,7 @@ struct cgit_period { char *(*pretty)(struct tm *tm); }; -extern int cgit_find_stats_period(const char *expr, struct cgit_period **period); +extern int cgit_find_stats_period(const char *expr, const struct cgit_period **period); extern const char *cgit_find_stats_periodname(int idx); extern void cgit_show_stats(void); -- cgit v1.1