summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2012-09-04 17:26:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-09-04 20:34:46 (GMT)
commit5b3b8fa2ab188908332358d2c2576491969cd580 (patch)
tree0b17b4cc2bde67a92973e5d112a4d0977103f9cb /path.c
parent871e293c9acbeaacce59dcd98fab6028f552f5be (diff)
downloadgit-5b3b8fa2ab188908332358d2c2576491969cd580.zip
git-5b3b8fa2ab188908332358d2c2576491969cd580.tar.gz
git-5b3b8fa2ab188908332358d2c2576491969cd580.tar.bz2
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 <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
-rw-r--r--path.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/path.c b/path.c
index 66acd24..9eb5333 100644
--- a/path.c
+++ b/path.c
@@ -48,7 +48,7 @@ char *mksnpath(char *buf, size_t n, const char *fmt, ...)
return cleanup_path(buf);
}
-static char *git_vsnpath(char *buf, size_t n, const char *fmt, va_list args)
+static char *vsnpath(char *buf, size_t n, const char *fmt, va_list args)
{
const char *git_dir = get_git_dir();
size_t len;
@@ -72,7 +72,7 @@ char *git_snpath(char *buf, size_t n, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
- (void)git_vsnpath(buf, n, fmt, args);
+ (void)vsnpath(buf, n, fmt, args);
va_end(args);
return buf;
}
@@ -82,7 +82,7 @@ char *git_pathdup(const char *fmt, ...)
char path[PATH_MAX];
va_list args;
va_start(args, fmt);
- (void)git_vsnpath(path, sizeof(path), fmt, args);
+ (void)vsnpath(path, sizeof(path), fmt, args);
va_end(args);
return xstrdup(path);
}