commit - 2bab8f23c6cf7e448895c3469a140f7f11bfb3e2
commit + d0ea9c5bbace3a6602c6731b2b2a0465c3ac6d10
blob - dc7a1dfd96f8cc504d523507e3ef74f41902f4b4
blob + 5f41af5fd128cd52b313dd595370a60287c95ed6
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
{ kvalid_stringne, "path" },
};
-int gw_get_repo_log_count(struct gw_trans *, char *);
+int gw_get_repo_log_count(struct gw_trans *,
+ char *);
static struct gw_dir *gw_init_gw_dir(char *);
static char *gw_get_time_str(time_t, int);
static char *gw_get_repo_age(struct gw_trans *,
char *, char *, int);
-static char *gw_get_repo_log(struct gw_trans *, const char *,
- char *, int, int);
+static char *gw_get_repo_log(struct gw_trans *,
+ const char *, char *, int, int);
static char *gw_get_file_blame(struct gw_trans *, char *);
static char *gw_get_repo_tree(struct gw_trans *, char *);
static char *gw_get_repo_diff(struct gw_trans *, char *,
static char *gw_get_got_link(struct gw_trans *);
static char *gw_get_site_link(struct gw_trans *);
static char *gw_html_escape(const char *);
-static char *color_diff_line(char *);
+static char *gw_colordiff_line(char *);
static void gw_display_open(struct gw_trans *, enum khttp,
enum kmime);
}
static char *
-gw_get_repo_age(struct gw_trans *gw_trans, char *dir, char *repo_ref, int ref_tm)
+gw_get_repo_age(struct gw_trans *gw_trans, char *dir, char *repo_ref,
+ int ref_tm)
{
const struct got_error *error = NULL;
struct got_object_id *id = NULL;
fseek(f, 0, SEEK_SET);
while ((fgets(buf, 128, f)) != NULL) {
- buf_color = color_diff_line(buf);
+ buf_color = gw_colordiff_line(buf);
error = buf_puts(&newsize, diffbuf, buf_color);
if (error)
return NULL;
}
static char *
-color_diff_line(char *buf)
+gw_colordiff_line(char *buf)
{
const struct got_error *error = NULL;
char *colorized_line = NULL, *div_diff_line_div = NULL, *color = NULL;