diff options
Diffstat (limited to 'ui-stats.c')
-rw-r--r-- | ui-stats.c | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -211,8 +211,8 @@ static int cmp_total_commits(const void *a1, const void *a2) | |||
211 | /* Walk the commit DAG and collect number of commits per author per | 211 | /* Walk the commit DAG and collect number of commits per author per |
212 | * timeperiod into a nested string_list collection. | 212 | * timeperiod into a nested string_list collection. |
213 | */ | 213 | */ |
214 | struct string_list collect_stats(struct cgit_context *ctx, | 214 | static struct string_list collect_stats(struct cgit_context *ctx, |
215 | struct cgit_period *period) | 215 | struct cgit_period *period) |
216 | { | 216 | { |
217 | struct string_list authors; | 217 | struct string_list authors; |
218 | struct rev_info rev; | 218 | struct rev_info rev; |
@@ -253,9 +253,12 @@ struct string_list collect_stats(struct cgit_context *ctx, | |||
253 | return authors; | 253 | return authors; |
254 | } | 254 | } |
255 | 255 | ||
256 | void print_combined_authorrow(struct string_list *authors, int from, int to, | 256 | static void print_combined_authorrow(struct string_list *authors, int from, |
257 | const char *name, const char *leftclass, const char *centerclass, | 257 | int to, const char *name, |
258 | const char *rightclass, struct cgit_period *period) | 258 | const char *leftclass, |
259 | const char *centerclass, | ||
260 | const char *rightclass, | ||
261 | struct cgit_period *period) | ||
259 | { | 262 | { |
260 | struct string_list_item *author; | 263 | struct string_list_item *author; |
261 | struct authorstat *authorstat; | 264 | struct authorstat *authorstat; |
@@ -293,8 +296,8 @@ void print_combined_authorrow(struct string_list *authors, int from, int to, | |||
293 | htmlf("<td class='%s'>%ld</td></tr>", rightclass, total); | 296 | htmlf("<td class='%s'>%ld</td></tr>", rightclass, total); |
294 | } | 297 | } |
295 | 298 | ||
296 | void print_authors(struct string_list *authors, int top, | 299 | static void print_authors(struct string_list *authors, int top, |
297 | struct cgit_period *period) | 300 | struct cgit_period *period) |
298 | { | 301 | { |
299 | struct string_list_item *author; | 302 | struct string_list_item *author; |
300 | struct authorstat *authorstat; | 303 | struct authorstat *authorstat; |