aboutsummaryrefslogtreecommitdiff
path: root/findutils/xargs.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
commitc7bda1ce659294d6e22c06e087f6f265983c7578 (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /findutils/xargs.c
parent8854004b41065b3d081af7f3df13a100b0c8bfbe (diff)
downloadbusybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'findutils/xargs.c')
-rw-r--r--findutils/xargs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c
index 8d7e813b5..16b94e20f 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -96,12 +96,12 @@ static int xargs_exec(char *const *args)
96 return 124; 96 return 124;
97 } 97 }
98 if (WIFSTOPPED(status)) { 98 if (WIFSTOPPED(status)) {
99 bb_error_msg("%s: stopped by signal %d", 99 bb_error_msg("%s: stopped by signal %d",
100 args[0], WSTOPSIG(status)); 100 args[0], WSTOPSIG(status));
101 return 125; 101 return 125;
102 } 102 }
103 if (WIFSIGNALED(status)) { 103 if (WIFSIGNALED(status)) {
104 bb_error_msg("%s: terminated by signal %d", 104 bb_error_msg("%s: terminated by signal %d",
105 args[0], WTERMSIG(status)); 105 args[0], WTERMSIG(status));
106 return 125; 106 return 125;
107 } 107 }
@@ -129,7 +129,7 @@ static int eof_stdin_detected;
129 || (c) == '\f' || (c) == '\v') 129 || (c) == '\f' || (c) == '\v')
130 130
131#ifdef CONFIG_FEATURE_XARGS_SUPPORT_QUOTES 131#ifdef CONFIG_FEATURE_XARGS_SUPPORT_QUOTES
132static xlist_t *process_stdin(xlist_t * list_arg, 132static xlist_t *process_stdin(xlist_t * list_arg,
133 const char *eof_str, size_t mc, char *buf) 133 const char *eof_str, size_t mc, char *buf)
134{ 134{
135#define NORM 0 135#define NORM 0
@@ -200,7 +200,7 @@ set:
200 } 200 }
201 if (state == SPACE) { /* word's delimiter or EOF detected */ 201 if (state == SPACE) { /* word's delimiter or EOF detected */
202 if (q) { 202 if (q) {
203 bb_error_msg_and_die("unmatched %s quote", 203 bb_error_msg_and_die("unmatched %s quote",
204 q == '\'' ? "single" : "double"); 204 q == '\'' ? "single" : "double");
205 } 205 }
206 /* word loaded */ 206 /* word loaded */
@@ -234,7 +234,7 @@ set:
234} 234}
235#else 235#else
236/* The variant does not support single quotes, double quotes or backslash */ 236/* The variant does not support single quotes, double quotes or backslash */
237static xlist_t *process_stdin(xlist_t * list_arg, 237static xlist_t *process_stdin(xlist_t * list_arg,
238 const char *eof_str, size_t mc, char *buf) 238 const char *eof_str, size_t mc, char *buf)
239{ 239{
240 240
@@ -496,8 +496,8 @@ int xargs_main(int argc, char **argv)
496 read_args = process0_stdin; 496 read_args = process0_stdin;
497#endif 497#endif
498 498
499 while ((list = READ_ARGS(list, eof_str, n_max_chars, max_chars)) != NULL || 499 while ((list = READ_ARGS(list, eof_str, n_max_chars, max_chars)) != NULL ||
500 (opt & OPT_NO_EMPTY) == 0) 500 (opt & OPT_NO_EMPTY) == 0)
501 { 501 {
502 opt |= OPT_NO_EMPTY; 502 opt |= OPT_NO_EMPTY;
503 n = 0; 503 n = 0;
@@ -574,7 +574,7 @@ const char *bb_applet_name = "debug stuff usage";
574 574
575void bb_show_usage(void) 575void bb_show_usage(void)
576{ 576{
577 fprintf(stderr, "Usage: %s [-p] [-r] [-t] -[x] [-n max_arg] [-s max_chars]\n", 577 fprintf(stderr, "Usage: %s [-p] [-r] [-t] -[x] [-n max_arg] [-s max_chars]\n",
578 bb_applet_name); 578 bb_applet_name);
579 exit(1); 579 exit(1);
580} 580}