diff options
author | Rob Landley <rob@landley.net> | 2015-02-07 16:23:59 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-02-07 16:23:59 -0600 |
commit | fb4ae952a6d75ae74a84fc2599f58c3c5398af8b (patch) | |
tree | 311b021ab43f41796a59ed54ca6cb4261bbc2385 /lib | |
parent | d57c23b2f33eb39cd4221b82ff6901a6e2a1ef2b (diff) | |
download | toybox-fb4ae952a6d75ae74a84fc2599f58c3c5398af8b.tar.gz |
Remove xexec_optargs().
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lib.h | 1 | ||||
-rw-r--r-- | lib/xwrap.c | 11 |
2 files changed, 0 insertions, 12 deletions
@@ -93,7 +93,6 @@ void xprintf(char *format, ...); void xputs(char *s); void xputc(char c); void xflush(void); -void xexec_optargs(int skip); void xexec(char **argv); pid_t xpopen_both(char **argv, int *pipes); int xpclose_both(pid_t pid, int *pipes); diff --git a/lib/xwrap.c b/lib/xwrap.c index bfe1c8e1..cd3c6845 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -129,17 +129,6 @@ void xflush(void) if (fflush(stdout) || ferror(stdout)) perror_exit("write");; } -// Call xexec with a chunk of optargs, starting at skip. (You can't just -// call xexec() directly because toy_init() frees optargs.) -void xexec_optargs(int skip) -{ - char **s = toys.optargs; - - toys.optargs = 0; - xexec(s+skip); -} - - // Die unless we can exec argv[] (or run builtin command). Note that anything // with a path isn't a builtin, so /bin/sh won't match the builtin sh. void xexec(char **argv) |