diff options
| author | Patrick Steinhardt <ps@pks.im> | 2020-06-08 12:40:47 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2020-06-09 14:57:06 +0200 |
| commit | a6c9e0b367c4882ab0f8e78bd0ad4ab2904ac377 (patch) | |
| tree | e45c4ff8b8110a46f5bd84f0415c6c537b27ecb5 /src/patch_parse.c | |
| parent | 7c499b544dc3383cce38956f86d67f328bc718e6 (diff) | |
| download | libgit2-a6c9e0b367c4882ab0f8e78bd0ad4ab2904ac377.tar.gz | |
tree-wide: mark local functions as static
We've accumulated quite some functions which are never used outside of
their respective code unit, but which are lacking the `static` keyword.
Add it to reduce their linkage scope and allow the compiler to optimize
better.
Diffstat (limited to 'src/patch_parse.c')
| -rw-r--r-- | src/patch_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patch_parse.c b/src/patch_parse.c index 0e251cb88..918575306 100644 --- a/src/patch_parse.c +++ b/src/patch_parse.c @@ -941,7 +941,7 @@ static int parse_patch_body( return parse_patch_hunks(patch, ctx); } -int check_header_names( +static int check_header_names( const char *one, const char *two, const char *old_or_new, |
