From f2382990742bff816ec54883e6204ededc378e7f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 6 Aug 2026 21:09:57 -1000 Subject: Settle the names, types and layout of the sources --- source/ui-ssdiff.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/ui-ssdiff.c') diff --git a/source/ui-ssdiff.c b/source/ui-ssdiff.c index ed5a2f4..750dc3d 100644 --- a/source/ui-ssdiff.c +++ b/source/ui-ssdiff.c @@ -218,7 +218,7 @@ static void print_part_with_lcs(char *class, char *line, char *lcs) html(""); } -static void print_ssdiff_line(char *class, +static void print_ssdiff_line(const char *class, int old_line_no, char *old_line, int new_line_no, @@ -235,8 +235,8 @@ static void print_ssdiff_line(char *class, html("\n"); if (old_line_no > 0) { struct diff_filespec *old_file = cgit_get_current_old_file(); - char *lineno_str = fmt("n%d", old_line_no); - char *id_str = fmt("id=%s#%s", is_null_oid(&old_file->oid)?"HEAD":oid_to_hex(old_rev_oid), lineno_str); + char *lineno_str = cgit_fmt("n%d", old_line_no); + char *id_str = cgit_fmt("id=%s#%s", is_null_oid(&old_file->oid)?"HEAD":oid_to_hex(old_rev_oid), lineno_str); struct strbuf path = STRBUF_INIT; char *fileurl; // The file path is repository content, so percent-encode it @@ -265,8 +265,8 @@ static void print_ssdiff_line(char *class, html("\n"); if (new_line_no > 0) { struct diff_filespec *new_file = cgit_get_current_new_file(); - char *lineno_str = fmt("n%d", new_line_no); - char *id_str = fmt("id=%s#%s", is_null_oid(&new_file->oid)?"HEAD":oid_to_hex(new_rev_oid), lineno_str); + char *lineno_str = cgit_fmt("n%d", new_line_no); + char *id_str = cgit_fmt("id=%s#%s", is_null_oid(&new_file->oid)?"HEAD":oid_to_hex(new_rev_oid), lineno_str); struct strbuf path = STRBUF_INIT; char *fileurl; // The file path is repository content, so percent-encode it -- cgit v2.8.0