author | Lars Hjemli <hjemli@gmail.com> | 2007-05-14 21:58:29 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-14 22:00:37 (UTC) |
commit | 9927e63f387e6c9328eb3c347ecb0e339f8ac023 (patch) (side-by-side diff) | |
tree | 3a73f7652445007a66aad5b8969201be9d42ed68 | |
parent | 5ec6e02bd1cc0c05b7cfd0d53371e7d176daec39 (diff) | |
download | cgit-9927e63f387e6c9328eb3c347ecb0e339f8ac023.zip cgit-9927e63f387e6c9328eb3c347ecb0e339f8ac023.tar.gz cgit-9927e63f387e6c9328eb3c347ecb0e339f8ac023.tar.bz2 |
Specify static storage class for file-local declarations
Also fix some whitespace issues while at it.
Noticed by Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | ui-commit.c | 8 | ||||
-rw-r--r-- | ui-summary.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ui-commit.c b/ui-commit.c index 20a7cb2..b6a106f 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -9,9 +9,9 @@ #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]; diff --git a/ui-summary.c b/ui-summary.c index 9388f5f..f6120f9 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -9,5 +9,5 @@ #include "cgit.h" -int items = 0; +static int items; static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1, |