From f5294e1f4c56afb377ada95a7757b28ad3c89086 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 14 Apr 2007 10:09:57 +0000 Subject: hush: use NOFORK applets as appropriate. Net reduction of code size. --- findutils/xargs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'findutils') diff --git a/findutils/xargs.c b/findutils/xargs.c index a430e5f..b90f44c 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;*/ -- cgit v1.1