-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 @@ -1,27 +1,27 @@ /* ui-commit.c: generate commit view * * Copyright (C) 2006 Lars Hjemli * * Licensed under GNU General Public License v2 * (see COPYING for full license text) */ #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]; unsigned short old_mode; unsigned short new_mode; char *old_path; char *new_path; unsigned int added; unsigned int removed; } *items; diff --git a/ui-summary.c b/ui-summary.c index 9388f5f..f6120f9 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -1,23 +1,23 @@ /* ui-summary.c: functions for generating repo summary page * * Copyright (C) 2006 Lars Hjemli * * Licensed under GNU General Public License v2 * (see COPYING for full license text) */ #include "cgit.h" -int items = 0; +static int items; static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1, int flags, void *cb_data) { struct commit *commit; struct commitinfo *info; char buf[256], *url; strncpy(buf, refname, sizeof(buf)); commit = lookup_commit(sha1); if (commit && !parse_commit(commit)){ info = cgit_parse_commit(commit); |