diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-14 10:09:57 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-14 10:09:57 +0000 |
commit | f5294e1f4c56afb377ada95a7757b28ad3c89086 (patch) | |
tree | 95a0c3632c8c2b20fa6b60f1e1a33e4fc4b24d4f /findutils | |
parent | 16abcd90aefae8bdb9f7d80a555982dba6ca59b5 (diff) | |
download | busybox-f5294e1f4c56afb377ada95a7757b28ad3c89086.tar.gz |
hush: use NOFORK applets as appropriate. Net reduction of code size.
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/xargs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c index a430e5f3d..b90f44ca4 100644 --- a/findutils/xargs.c +++ b/findutils/xargs.c @@ -176,7 +176,7 @@ set: } if (!eof_str_detected) { size_t length = (p - buf); - +// TODO: smarter llist_t cur = xzalloc(sizeof(xlist_t) + length); cur->data = memcpy(cur + 1, s, length); cur->length = length; @@ -247,6 +247,7 @@ static xlist_t *process_stdin(xlist_t *list_arg, size_t length = (p - buf); cur = xzalloc(sizeof(xlist_t) + length); +// TODO: smarter llist_t cur->data = memcpy(cur + 1, s, length); cur->length = length; /*cur->link = NULL;*/ @@ -329,6 +330,7 @@ static xlist_t *process0_stdin(xlist_t *list_arg, size_t length = (p - buf); cur = xzalloc(sizeof(xlist_t) + length); +// TODO: smarter llist_t cur->data = memcpy(cur + 1, s, length); cur->length = length; /*cur->link = NULL;*/ |