diff options
Diffstat (limited to 'source/ui-diff.c')
| -rw-r--r-- | source/ui-diff.c | 12 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 6 insertions, 6 deletions
diff --git a/source/ui-diff.c b/source/ui-diff.c index ab40566..ebf9425 100644 --- a/source/ui-diff.c +++ b/source/ui-diff.c @@ -57,7 +57,7 @@ struct diff_filespec *cgit_get_current_new_file(void) static void print_fileinfo(struct fileinfo *info) { - char *class; + const char *class; switch (info->status) { case DIFF_STATUS_ADDED: @@ -228,7 +228,7 @@ static void cgit_print_diffstat(const struct object_id *old_oid, */ static void print_line(char *line, int len) { - char *class = "ctx"; + const char *class = "ctx"; char c = line[len-1]; if (line[0] == '+') @@ -345,11 +345,11 @@ static void filepair_cb(struct diff_filepair *pair) } if (S_ISGITLINK(pair->one->mode) || S_ISGITLINK(pair->two->mode)) { if (S_ISGITLINK(pair->one->mode)) { - char *l = fmt("-Subproject %s", oid_to_hex(&pair->one->oid)); + char *l = cgit_fmt("-Subproject %s", oid_to_hex(&pair->one->oid)); print_line_fn(l, strlen(l) + 1); } if (S_ISGITLINK(pair->two->mode)) { - char *l = fmt("+Subproject %s", oid_to_hex(&pair->two->oid)); + char *l = cgit_fmt("+Subproject %s", oid_to_hex(&pair->two->oid)); print_line_fn(l, strlen(l) + 1); } if (use_ssdiff) @@ -388,9 +388,9 @@ void cgit_print_diff_ctrls(void) if (!curr) curr = 3; for (i = 1; i <= 10; i++) - html_intoption(i, fmt("%d", i), curr); + html_intoption(i, cgit_fmt("%d", i), curr); for (i = 15; i <= 40; i += 5) - html_intoption(i, fmt("%d", i), curr); + html_intoption(i, cgit_fmt("%d", i), curr); html("</select>"); html("</td>"); html("</tr><tr>"); |
