diff options
author | Bruno Haible <bruno@clisp.org> | 2009-12-10 20:28:30 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-12-10 20:28:30 +0100 |
commit | 441aa3044f43e5572f58c354f01e6bc070acd5c7 (patch) | |
tree | bef236e8058dd3469da28ffcd5a6a287222a4c50 /lib/sh-quote.c | |
parent | 039ae97b8ae35a2446c5d62d72b21689c97da7e2 (diff) | |
download | gnulib-441aa3044f43e5572f58c354f01e6bc070acd5c7.tar.gz |
Use spaces for indentation, not tabs.
Diffstat (limited to 'lib/sh-quote.c')
-rw-r--r-- | lib/sh-quote.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/sh-quote.c b/lib/sh-quote.c index e349f403e5..f59e55fbff 100644 --- a/lib/sh-quote.c +++ b/lib/sh-quote.c @@ -43,7 +43,7 @@ shell_quote_length (const char *string) if (sh_quoting_options == NULL) init_sh_quoting_options (); return quotearg_buffer (NULL, 0, string, strlen (string), - sh_quoting_options); + sh_quoting_options); } /* Copies the quoted string to p and returns the incremented p. @@ -54,7 +54,7 @@ shell_quote_copy (char *p, const char *string) if (sh_quoting_options == NULL) init_sh_quoting_options (); return p + quotearg_buffer (p, (size_t)(-1), string, strlen (string), - sh_quoting_options); + sh_quoting_options); } /* Returns the freshly allocated quoted string. */ @@ -80,24 +80,24 @@ shell_quote_argv (char **argv) length = 0; for (argp = argv; ; ) - { - length += shell_quote_length (*argp) + 1; - argp++; - if (*argp == NULL) - break; - } + { + length += shell_quote_length (*argp) + 1; + argp++; + if (*argp == NULL) + break; + } command = XNMALLOC (length, char); p = command; for (argp = argv; ; ) - { - p = shell_quote_copy (p, *argp); - argp++; - if (*argp == NULL) - break; - *p++ = ' '; - } + { + p = shell_quote_copy (p, *argp); + argp++; + if (*argp == NULL) + break; + *p++ = ' '; + } *p = '\0'; return command; |