mirror of
https://git.zx2c4.com/cgit
synced 2024-11-26 10:28:42 +00:00
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>
This commit is contained in:
parent
5ec6e02bd1
commit
9927e63f38
@ -8,11 +8,11 @@
|
|||||||
|
|
||||||
#include "cgit.h"
|
#include "cgit.h"
|
||||||
|
|
||||||
int files = 0, slots = 0;
|
static int files, slots;
|
||||||
int total_adds = 0, total_rems = 0, max_changes = 0;
|
static int total_adds, total_rems, max_changes;
|
||||||
int lines_added, lines_removed;
|
static int lines_added, lines_removed;
|
||||||
|
|
||||||
struct fileinfo {
|
static struct fileinfo {
|
||||||
char status;
|
char status;
|
||||||
unsigned char old_sha1[20];
|
unsigned char old_sha1[20];
|
||||||
unsigned char new_sha1[20];
|
unsigned char new_sha1[20];
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "cgit.h"
|
#include "cgit.h"
|
||||||
|
|
||||||
int items = 0;
|
static int items;
|
||||||
|
|
||||||
static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1,
|
static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1,
|
||||||
int flags, void *cb_data)
|
int flags, void *cb_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user