]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
Specify static storage class for file-local declarations
[ps-cgit] / ui-commit.c
index 20a7cb2259d978c72dab0084c1f4dd091c857176..b6a106fb0681a9e93638787f54443dff93dc17f8 100644 (file)
@@ -8,11 +8,11 @@
 
 #include "cgit.h"
 
-int files = 0, slots = 0;
-int total_adds = 0, total_rems = 0, max_changes = 0;
-int lines_added, lines_removed;
+static int files, slots;
+static int total_adds, total_rems, max_changes;
+static int lines_added, lines_removed;
 
-struct fileinfo {
+static struct fileinfo {
        char status;
        unsigned char old_sha1[20];
        unsigned char new_sha1[20];