diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Settle the names, types and layout of the sources
Diffstat (limited to 'source/ui-ssdiff.c')
-rw-r--r--source/ui-ssdiff.c10
1 file changed, 5 insertions, 5 deletions
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("</span>");
}
-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("<tr>\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("</td>\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