]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-diff.c
ui-shared: avoid initializing static variable to zero
[ps-cgit] / ui-diff.c
index 5b6df1ff972226e30a5fcf6418d21ec1e92f04dc..1cf2ce0c8e32b1a600b855c0d9951297d2fdcafa 100644 (file)
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -31,7 +31,7 @@ static struct fileinfo {
        unsigned int removed;
        unsigned long old_size;
        unsigned long new_size;
        unsigned int removed;
        unsigned long old_size;
        unsigned long new_size;
-       int binary:1;
+       unsigned int binary:1;
 } *items;
 
 static int use_ssdiff = 0;
 } *items;
 
 static int use_ssdiff = 0;
@@ -311,7 +311,7 @@ static void filepair_cb(struct diff_filepair *pair)
                cgit_ssdiff_footer();
 }
 
                cgit_ssdiff_footer();
 }
 
-void cgit_print_diff_ctrls()
+void cgit_print_diff_ctrls(void)
 {
        int i, curr;
 
 {
        int i, curr;