aboutsummaryrefslogtreecommitdiffstats
path: root/ui-ssdiff.c
diff options
context:
space:
mode:
authorJohn Keeping2015-03-08 16:32:16 +0000
committerJason A. Donenfeld2015-03-09 17:38:30 +0100
commite3d3fffdd447cdb4551549faae65bae5353a2cab (patch)
tree43ab1eaeeabf9269d0eebb64e64e957183f41b4d /ui-ssdiff.c
parent5150b7c1e69b4b09821e438006cfd77d82edae3b (diff)
downloadcgit-e3d3fffdd447cdb4551549faae65bae5353a2cab.tar.gz
cgit-e3d3fffdd447cdb4551549faae65bae5353a2cab.tar.bz2
cgit-e3d3fffdd447cdb4551549faae65bae5353a2cab.zip
Avoid non-ANSI function declarations
Sparse says things like: warning: non-ANSI function declaration of function 'calc_ttl' Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-ssdiff.c')
-rw-r--r--ui-ssdiff.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ui-ssdiff.c b/ui-ssdiff.c
index 08cf513..2146c71 100644
--- a/ui-ssdiff.c
+++ b/ui-ssdiff.c
@@ -18,7 +18,7 @@ struct deferred_lines {
18static struct deferred_lines *deferred_old, *deferred_old_last; 18static struct deferred_lines *deferred_old, *deferred_old_last;
19static struct deferred_lines *deferred_new, *deferred_new_last; 19static struct deferred_lines *deferred_new, *deferred_new_last;
20 20
21static void create_or_reset_lcs_table() 21static void create_or_reset_lcs_table(void)
22{ 22{
23 int i; 23 int i;
24 24
@@ -276,7 +276,7 @@ static void print_ssdiff_line(char *class,
276 free(old_line); 276 free(old_line);
277} 277}
278 278
279static void print_deferred_old_lines() 279static void print_deferred_old_lines(void)
280{ 280{
281 struct deferred_lines *iter_old, *tmp; 281 struct deferred_lines *iter_old, *tmp;
282 iter_old = deferred_old; 282 iter_old = deferred_old;
@@ -289,7 +289,7 @@ static void print_deferred_old_lines()
289 } 289 }
290} 290}
291 291
292static void print_deferred_new_lines() 292static void print_deferred_new_lines(void)
293{ 293{
294 struct deferred_lines *iter_new, *tmp; 294 struct deferred_lines *iter_new, *tmp;
295 iter_new = deferred_new; 295 iter_new = deferred_new;
@@ -302,7 +302,7 @@ static void print_deferred_new_lines()
302 } 302 }
303} 303}
304 304
305static void print_deferred_changed_lines() 305static void print_deferred_changed_lines(void)
306{ 306{
307 struct deferred_lines *iter_old, *iter_new, *tmp; 307 struct deferred_lines *iter_old, *iter_new, *tmp;
308 int n_old_lines = calc_deferred_lines(deferred_old); 308 int n_old_lines = calc_deferred_lines(deferred_old);
@@ -337,7 +337,7 @@ static void print_deferred_changed_lines()
337 } 337 }
338} 338}
339 339
340void cgit_ssdiff_print_deferred_lines() 340void cgit_ssdiff_print_deferred_lines(void)
341{ 341{
342 if (!deferred_old && !deferred_new) 342 if (!deferred_old && !deferred_new)
343 return; 343 return;
@@ -388,7 +388,7 @@ void cgit_ssdiff_line_cb(char *line, int len)
388 line[len - 1] = c; 388 line[len - 1] = c;
389} 389}
390 390
391void cgit_ssdiff_header_begin() 391void cgit_ssdiff_header_begin(void)
392{ 392{
393 current_old_line = -1; 393 current_old_line = -1;
394 current_new_line = -1; 394 current_new_line = -1;
@@ -396,12 +396,12 @@ void cgit_ssdiff_header_begin()
396 html("<tr><td class='head' colspan='4'>"); 396 html("<tr><td class='head' colspan='4'>");
397} 397}
398 398
399void cgit_ssdiff_header_end() 399void cgit_ssdiff_header_end(void)
400{ 400{
401 html("</td><tr>"); 401 html("</td><tr>");
402} 402}
403 403
404void cgit_ssdiff_footer() 404void cgit_ssdiff_footer(void)
405{ 405{
406 if (deferred_old || deferred_new) 406 if (deferred_old || deferred_new)
407 cgit_ssdiff_print_deferred_lines(); 407 cgit_ssdiff_print_deferred_lines();