summaryrefslogtreecommitdiff
path: root/quote.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-06-08 09:54:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-06-08 09:54:57 (GMT)
commit16befb8b7fbfcc9b2d38931f4081669558300adf (patch)
treebf43ee0650d85c8a8096a59d24ea536e0b11a3e2 /quote.c
parentfcd056a6d23bafb13f991ffb673fb87c7100b8f2 (diff)
downloadgit-16befb8b7fbfcc9b2d38931f4081669558300adf.zip
git-16befb8b7fbfcc9b2d38931f4081669558300adf.tar.gz
git-16befb8b7fbfcc9b2d38931f4081669558300adf.tar.bz2
Even more missing static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'quote.c')
-rw-r--r--quote.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/quote.c b/quote.c
index fb9e4ca..aa44009 100644
--- a/quote.c
+++ b/quote.c
@@ -20,7 +20,7 @@ static inline int need_bs_quote(char c)
return (c == '\'' || c == '!');
}
-size_t sq_quote_buf(char *dst, size_t n, const char *src)
+static size_t sq_quote_buf(char *dst, size_t n, const char *src)
{
char c;
char *bp = dst;
@@ -62,18 +62,6 @@ void sq_quote_print(FILE *stream, const char *src)
fputc('\'', stream);
}
-char *sq_quote(const char *src)
-{
- char *buf;
- size_t cnt;
-
- cnt = sq_quote_buf(NULL, 0, src) + 1;
- buf = xmalloc(cnt);
- sq_quote_buf(buf, cnt, src);
-
- return buf;
-}
-
char *sq_quote_argv(const char** argv, int count)
{
char *buf, *to;