diff options
author | John Keeping | 2015-03-08 16:32:23 +0000 |
---|---|---|
committer | Jason A. Donenfeld | 2015-03-09 17:40:02 +0100 |
commit | bd9fb0324d776aa5583a70a6125fce47697701b1 (patch) | |
tree | 7d5e04c628c39f6cd39ff9d9ebad6160c22e3680 /ui-stats.h | |
parent | 0f23d4651c80170574c0ab2f091c0718150631ce (diff) | |
download | cgit-bd9fb0324d776aa5583a70a6125fce47697701b1.tar.gz cgit-bd9fb0324d776aa5583a70a6125fce47697701b1.tar.bz2 cgit-bd9fb0324d776aa5583a70a6125fce47697701b1.zip |
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 <john@keeping.me.uk>
Diffstat (limited to 'ui-stats.h')
-rw-r--r-- | ui-stats.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ struct cgit_period { | |||
20 | char *(*pretty)(struct tm *tm); | 20 | char *(*pretty)(struct tm *tm); |
21 | }; | 21 | }; |
22 | 22 | ||
23 | extern int cgit_find_stats_period(const char *expr, struct cgit_period **period); | 23 | extern int cgit_find_stats_period(const char *expr, const struct cgit_period **period); |
24 | extern const char *cgit_find_stats_periodname(int idx); | 24 | extern const char *cgit_find_stats_periodname(int idx); |
25 | 25 | ||
26 | extern void cgit_show_stats(void); | 26 | extern void cgit_show_stats(void); |