mirror of
https://git.zx2c4.com/cgit
synced 2025-07-21 11:24:22 +02:00
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>
This commit is contained in:
parent
0f23d4651c
commit
bd9fb0324d
2 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue