path: root/quote.h
diff options
authorChristian Couder <>2007-12-03 04:51:50 (GMT)
committerJunio C Hamano <>2007-12-04 06:11:53 (GMT)
commitb319ce4c14f7fe0ee469a3f9def1098d84177849 (patch)
tree39a7a42798f8512ea00b49b0a4898bf898ae9cf6 /quote.h
parent41650765dea25b7804a9fdf41ce0b7db59816734 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'quote.h')
1 files changed, 1 insertions, 2 deletions
diff --git a/quote.h b/quote.h
index 4287990..ab7596f 100644
--- a/quote.h
+++ b/quote.h
@@ -31,8 +31,7 @@
extern void sq_quote_print(FILE *stream, const char *src);
extern void sq_quote_buf(struct strbuf *, const char *src);
-extern void sq_quote_argv(struct strbuf *, const char **argv, int count,
- size_t maxlen);
+extern void sq_quote_argv(struct strbuf *, const char **argv, size_t maxlen);
/* This unwraps what sq_quote() produces in place, but returns
* NULL if the input does not look like what sq_quote would have