diff options
| author | Lukas Fleischer | 2013-03-04 08:52:33 +0100 |
|---|---|---|
| committer | Jason A. Donenfeld | 2013-03-04 19:50:39 -0500 |
| commit | bafab423f20bc1448b293842c235965e1681f07e (patch) | |
| tree | 18c4bef1e4714c4abd20b8e1d5ec04db3ae3b9ac /shared.c | |
| parent | d5a43b429a4248a02e3a403f76fff0cbae92ef32 (diff) | |
| download | cgit-bafab423f20bc1448b293842c235965e1681f07e.tar.gz cgit-bafab423f20bc1448b293842c235965e1681f07e.tar.bz2 cgit-bafab423f20bc1448b293842c235965e1681f07e.zip | |
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.c | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -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 | ||
| 161 | struct refinfo *cgit_mk_refinfo(const char *refname, const unsigned char *sha1) | 161 | static 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 | ||
| 190 | void cgit_diff_tree_cb(struct diff_queue_struct *q, | 190 | static 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) | |||
| 224 | char *diffbuf = NULL; | 224 | char *diffbuf = NULL; |
| 225 | int buflen = 0; | 225 | int buflen = 0; |
| 226 | 226 | ||
| 227 | int filediff_cb(void *priv, mmbuffer_t *mb, int nbuf) | 227 | static 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 | ||
| 464 | int is_token_char(char c) | 464 | static 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 | */ |
| 471 | char *expand_macro(char *name, int maxlength) | 471 | static char *expand_macro(char *name, int maxlength) |
| 472 | { | 472 | { |
| 473 | char *value; | 473 | char *value; |
| 474 | int len; | 474 | int len; |
