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>
这个提交包含在:
Lars Hjemli
2007-05-14 23:58:29 +02:00
父节点 5ec6e02bd1
当前提交 9927e63f38
修改 2 个文件,包含 11 行新增11 行删除

查看文件

@@ -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];