summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-09-15 22:47:42 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-09-15 22:58:21 -0700
commitcbfb93a12b7f60dcd0f5a0cd3f5f37ee694ecd3a (patch)
treecb7c5dd67b9a49c8cf33757ca4487db841e6c4c2
parentwt-status.c: mark a private file-scope symbol as static (diff)
downloadtgif-cbfb93a12b7f60dcd0f5a0cd3f5f37ee694ecd3a.tar.xz
trace.c: mark a private file-scope symbol as static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--cache.h1
-rw-r--r--trace.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/cache.h b/cache.h
index 032f6711c1..bfa7189feb 100644
--- 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, ...);
-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);
diff --git a/trace.c b/trace.c
index d95341693f..5ec0e3bd16 100644
--- 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";
-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;