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>
此提交包含在:
John Keeping
2015-03-08 16:32:23 +00:00
提交者 Jason A. Donenfeld
父節點 0f23d4651c
當前提交 bd9fb0324d
共有 2 個檔案被更改,包括 8 行新增8 行删除

查看文件

@@ -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);