Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
path.c: Remove the 'git_' prefix from a file scope function
author
Ramsay Jones
<ramsay@ramsay1.demon.co.uk>
Tue, 4 Sep 2012 17:26:30 +0000
(18:26 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 4 Sep 2012 20:34:46 +0000
(13:34 -0700)
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>
path.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
871e293
)
diff --git
a/path.c
b/path.c
index 66acd24fa8821861d032fc216f6ea6fdd711a969..9eb5333eed31ade98930d7c90e1cea61bc66dd22 100644
(file)
--- a/
path.c
+++ b/
path.c
@@
-48,7
+48,7
@@
char *mksnpath(char *buf, size_t n, const char *fmt, ...)
return cleanup_path(buf);
}
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;
{
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);
{
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;
}
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);
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);
}
va_end(args);
return xstrdup(path);
}