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/win32 | |
| 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/win32')
| -rw-r--r-- | src/win32/path_w32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32/path_w32.c b/src/win32/path_w32.c index 18b43e728..9faddcf3b 100644 --- a/src/win32/path_w32.c +++ b/src/win32/path_w32.c @@ -151,7 +151,7 @@ int git_win32_path_canonicalize(git_win32_path path) return (int)(to - path); } -int git_win32_path__cwd(wchar_t *out, size_t len) +static int win32_path_cwd(wchar_t *out, size_t len) { int cwd_len; @@ -241,7 +241,7 @@ int git_win32_path_from_utf8(git_win32_path out, const char *src) else { int cwd_len; - if ((cwd_len = git_win32_path__cwd(dest, MAX_PATH)) < 0) + if ((cwd_len = win32_path_cwd(dest, MAX_PATH)) < 0) goto on_error; dest[cwd_len++] = L'\\'; |
