diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2007-12-03 05:51:50 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-03 22:11:53 -0800 |
commit | b319ce4c14f7fe0ee469a3f9def1098d84177849 (patch) | |
tree | 39a7a42798f8512ea00b49b0a4898bf898ae9cf6 /trace.c | |
parent | 41650765dea25b7804a9fdf41ce0b7db59816734 (diff) | |
download | git-b319ce4c14f7fe0ee469a3f9def1098d84177849.tar.gz |
Trace and quote with argv: get rid of unneeded count argument.
Now that str_buf takes care of all the allocations, there is
no more gain to pass an argument count.
So this patch removes the "count" argument from:
- "sq_quote_argv"
- "trace_argv_printf"
and all the callers.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace.c')
-rw-r--r-- | trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -93,7 +93,7 @@ void trace_printf(const char *fmt, ...) close(fd); } -void trace_argv_printf(const char **argv, int count, const char *fmt, ...) +void trace_argv_printf(const char **argv, const char *fmt, ...) { struct strbuf buf; va_list ap; @@ -117,7 +117,7 @@ void trace_argv_printf(const char **argv, int count, const char *fmt, ...) } strbuf_setlen(&buf, len); - sq_quote_argv(&buf, argv, count, 0); + sq_quote_argv(&buf, argv, 0); strbuf_addch(&buf, '\n'); write_or_whine_pipe(fd, buf.buf, buf.len, err_msg); strbuf_release(&buf); |