about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2015-03-08 16:32:19 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2015-03-09 17:39:13 +0100
commiteefd5e0aea23010c3f6667ba30e607e68427f9ad (patch)
treeea734d7afdb5a2303168b9a64d6c2a460ff3b696
parentscan-tree: make some variables 'static' (diff)
downloadcgit-pink-eefd5e0aea23010c3f6667ba30e607e68427f9ad.tar.gz
cgit-pink-eefd5e0aea23010c3f6667ba30e607e68427f9ad.zip
shared: make some variables 'static'
These are not used outside this file and are not declared.

Signed-off-by: John Keeping <john@keeping.me.uk>
-rw-r--r--shared.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared.c b/shared.c
index ae17d78..a99173b 100644
--- a/shared.c
+++ b/shared.c
@@ -284,8 +284,8 @@ static int load_mmfile(mmfile_t *file, const unsigned char *sha1)
  * ripped from git and modified to use globals instead of
  * a special callback-struct.
  */
-char *diffbuf = NULL;
-int buflen = 0;
+static char *diffbuf = NULL;
+static int buflen = 0;
 
 static int filediff_cb(void *priv, mmbuffer_t *mb, int nbuf)
 {
l?id=9d3e8a88a0d06310ff0a9309a5439ab97b8f922f&follow=1'>Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe