Skip to content

Commit

Permalink
path.c: Remove the 'git_' prefix from a file scope function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ramsay Jones authored and Junio C Hamano committed Sep 4, 2012
1 parent 871e293 commit 5b3b8fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions path.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 5b3b8fa

Please sign in to comment.