Skip to content

Commit 5b3b8fa

Browse files
Ramsay Jonesgitster
authored andcommitted
path.c: Remove the 'git_' prefix from a file scope function
In particular, the git_vsnpath() function, despite the 'git_' prefix suggesting otherwise, is (correctly) declared with file scope. Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 871e293 commit 5b3b8fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

path.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ char *mksnpath(char *buf, size_t n, const char *fmt, ...)
4848
return cleanup_path(buf);
4949
}
5050

51-
static char *git_vsnpath(char *buf, size_t n, const char *fmt, va_list args)
51+
static char *vsnpath(char *buf, size_t n, const char *fmt, va_list args)
5252
{
5353
const char *git_dir = get_git_dir();
5454
size_t len;
@@ -72,7 +72,7 @@ char *git_snpath(char *buf, size_t n, const char *fmt, ...)
7272
{
7373
va_list args;
7474
va_start(args, fmt);
75-
(void)git_vsnpath(buf, n, fmt, args);
75+
(void)vsnpath(buf, n, fmt, args);
7676
va_end(args);
7777
return buf;
7878
}
@@ -82,7 +82,7 @@ char *git_pathdup(const char *fmt, ...)
8282
char path[PATH_MAX];
8383
va_list args;
8484
va_start(args, fmt);
85-
(void)git_vsnpath(path, sizeof(path), fmt, args);
85+
(void)vsnpath(path, sizeof(path), fmt, args);
8686
va_end(args);
8787
return xstrdup(path);
8888
}

0 commit comments

Comments
 (0)