diff options
author | Lukas Fleischer <cgit@cryptocrack.de> | 2013-03-04 08:52:33 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-03-04 19:50:39 -0500 |
commit | bafab423f20bc1448b293842c235965e1681f07e (patch) | |
tree | 18c4bef1e4714c4abd20b8e1d5ec04db3ae3b9ac /parsing.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 'parsing.c')
-rw-r--r-- | parsing.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -52,7 +52,7 @@ void cgit_parse_url(const char *url) } } -char *substr(const char *head, const char *tail) +static char *substr(const char *head, const char *tail) { char *buf; @@ -64,7 +64,7 @@ char *substr(const char *head, const char *tail) return buf; } -char *parse_user(char *t, char **name, char **email, unsigned long *date) +static char *parse_user(char *t, char **name, char **email, unsigned long *date) { char *p = t; int mode = 1; @@ -101,7 +101,7 @@ char *parse_user(char *t, char **name, char **email, unsigned long *date) #ifdef NO_ICONV #define reencode(a, b, c) #else -const char *reencode(char **txt, const char *src_enc, const char *dst_enc) +static const char *reencode(char **txt, const char *src_enc, const char *dst_enc) { char *tmp; |