mirror of
https://git.zx2c4.com/cgit
synced 2025-06-21 09:35:42 +02:00
Mark several functions/variables static
Spotted by parsing the output of `gcc -Wmissing-prototypes [...]`. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
This commit is contained in:
parent
d5a43b429a
commit
bafab423f2
14 changed files with 64 additions and 60 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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue