aboutsummaryrefslogtreecommitdiffstats
path: root/shared.c
diff options
context:
space:
mode:
authorGravatar Lukas Fleischer <cgit@cryptocrack.de>2013-03-04 16:52:33 (JST)
committerGravatar Jason A. Donenfeld <Jason@zx2c4.com>2013-03-05 09:50:39 (JST)
commitbafab423f20bc1448b293842c235965e1681f07e (patch)
tree18c4bef1e4714c4abd20b8e1d5ec04db3ae3b9ac /shared.c
parentd5a43b429a4248a02e3a403f76fff0cbae92ef32 (diff)
downloadcgit-bafab423f20bc1448b293842c235965e1681f07e.zip
cgit-bafab423f20bc1448b293842c235965e1681f07e.tar.gz
Mark several functions/variables static
Spotted by parsing the output of `gcc -Wmissing-prototypes [...]`. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/shared.c b/shared.c
index e732064..124d079 100644
--- a/shared.c
+++ b/shared.c
@@ -158,7 +158,7 @@ void cgit_add_ref(struct reflist *list, struct refinfo *ref)
158 list->refs[list->count++] = ref; 158 list->refs[list->count++] = ref;
159} 159}
160 160
161struct refinfo *cgit_mk_refinfo(const char *refname, const unsigned char *sha1) 161static struct refinfo *cgit_mk_refinfo(const char *refname, const unsigned char *sha1)
162{ 162{
163 struct refinfo *ref; 163 struct refinfo *ref;
164 164
@@ -187,8 +187,8 @@ int cgit_refs_cb(const char *refname, const unsigned char *sha1, int flags,
187 return 0; 187 return 0;
188} 188}
189 189
190void cgit_diff_tree_cb(struct diff_queue_struct *q, 190static void cgit_diff_tree_cb(struct diff_queue_struct *q,
191 struct diff_options *options, void *data) 191 struct diff_options *options, void *data)
192{ 192{
193 int i; 193 int i;
194 194
@@ -224,7 +224,7 @@ static int load_mmfile(mmfile_t *file, const unsigned char *sha1)
224char *diffbuf = NULL; 224char *diffbuf = NULL;
225int buflen = 0; 225int buflen = 0;
226 226
227int filediff_cb(void *priv, mmbuffer_t *mb, int nbuf) 227static int filediff_cb(void *priv, mmbuffer_t *mb, int nbuf)
228{ 228{
229 int i; 229 int i;
230 230
@@ -461,14 +461,14 @@ int readfile(const char *path, char **buf, size_t *size)
461 return (*size == st.st_size ? 0 : e); 461 return (*size == st.st_size ? 0 : e);
462} 462}
463 463
464int is_token_char(char c) 464static int is_token_char(char c)
465{ 465{
466 return isalnum(c) || c == '_'; 466 return isalnum(c) || c == '_';
467} 467}
468 468
469/* Replace name with getenv(name), return pointer to zero-terminating char 469/* Replace name with getenv(name), return pointer to zero-terminating char
470 */ 470 */
471char *expand_macro(char *name, int maxlength) 471static char *expand_macro(char *name, int maxlength)
472{ 472{
473 char *value; 473 char *value;
474 int len; 474 int len;