Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
trace.c: mark a private file-scope symbol as static
author
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Sep 2012 05:47:42 +0000
(22:47 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Sep 2012 05:58:21 +0000
(22:58 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
patch
|
blob
|
history
trace.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
1e24845
)
diff --git
a/cache.h
b/cache.h
index 032f6711c17d6ab342df77bde58f53a5bf610e39..bfa7189feb55e4f5dece78ad7c0a8fe1f0a88530 100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-1205,7
+1205,6
@@
extern void alloc_report(void);
/* trace.c */
__attribute__((format (printf, 1, 2)))
extern void trace_printf(const char *format, ...);
/* trace.c */
__attribute__((format (printf, 1, 2)))
extern void trace_printf(const char *format, ...);
-extern void trace_vprintf(const char *key, const char *format, va_list ap);
__attribute__((format (printf, 2, 3)))
extern void trace_argv_printf(const char **argv, const char *format, ...);
extern void trace_repo_setup(const char *prefix);
__attribute__((format (printf, 2, 3)))
extern void trace_argv_printf(const char **argv, const char *format, ...);
extern void trace_repo_setup(const char *prefix);
diff --git
a/trace.c
b/trace.c
index d95341693fa9b27caed38ffe1308838bedb49f83..5ec0e3bd16b5cfc59254c6e10d4555ef3029aa36 100644
(file)
--- a/
trace.c
+++ b/
trace.c
@@
-62,7
+62,7
@@
static int get_trace_fd(const char *key, int *need_close)
static const char err_msg[] = "Could not trace into fd given by "
"GIT_TRACE environment variable";
static const char err_msg[] = "Could not trace into fd given by "
"GIT_TRACE environment variable";
-void trace_vprintf(const char *key, const char *fmt, va_list ap)
+
static
void trace_vprintf(const char *key, const char *fmt, va_list ap)
{
struct strbuf buf = STRBUF_INIT;
{
struct strbuf buf = STRBUF_INIT;