[prev in list] [next in list] [prev in thread] [next in thread]
List: cgit
Subject: [PATCH 05/13] shared: make some variables 'static'
From: John Keeping <john () keeping ! me ! uk>
Date: 2015-03-08 16:32:19
Message-ID: 083fd28819d06ed810ab54d9ac1523ab23c09212.1425832129.git.john () keeping ! me ! uk
[Download RAW message or body]
These are not used outside this file and are not declared.
Signed-off-by: John Keeping <john@keeping.me.uk>
---
shared.c | 4 ++--
1 file 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)
{
--
2.3.1.308.g754cd77
_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic