]> git.cameronkatri.com Git - cgit.git/commitdiff
shared: make some variables 'static'
authorJohn Keeping <john@keeping.me.uk>
Sun, 8 Mar 2015 16:32:19 +0000 (16:32 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 9 Mar 2015 16:39:13 +0000 (17:39 +0100)
These are not used outside this file and are not declared.

Signed-off-by: John Keeping <john@keeping.me.uk>
shared.c

index ae17d789f26eb5ea565dba771b7ca132e86fdb45..a99173b6113c058cef503e76042a575d1bdbf127 100644 (file)
--- 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)
 {