From 9927e63f387e6c9328eb3c347ecb0e339f8ac023 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 14 May 2007 21:58:29 +0000 Subject: Specify static storage class for file-local declarations Also fix some whitespace issues while at it. Noticed by Kristian Høgsberg Signed-off-by: Lars Hjemli --- (limited to 'ui-commit.c') diff --git a/ui-commit.c b/ui-commit.c index 20a7cb2..b6a106f 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -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]; -- cgit v0.9.0.2