diff options
author | Ron Yorston <rmy@pobox.com> | 2018-12-03 08:57:41 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-12-03 08:57:41 +0000 |
commit | a8ed2141f19469fef2085f1eaa6ae8286f84f67c (patch) | |
tree | 9c514fd659f52e917b0021803271bc62679332e6 | |
parent | 6f586b168b2fd8da3da821418464c5ac0e83cd0b (diff) | |
download | busybox-w32-a8ed2141f19469fef2085f1eaa6ae8286f84f67c.tar.gz busybox-w32-a8ed2141f19469fef2085f1eaa6ae8286f84f67c.tar.bz2 busybox-w32-a8ed2141f19469fef2085f1eaa6ae8286f84f67c.zip |
ash: code clean up
-rw-r--r-- | shell/ash.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/shell/ash.c b/shell/ash.c index d23c22248..638f912c0 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -15409,7 +15409,6 @@ redirtab_copy(struct redirtab *rdtp) | |||
15409 | 15409 | ||
15410 | #undef shellparam | 15410 | #undef shellparam |
15411 | #undef redirlist | 15411 | #undef redirlist |
15412 | #undef varinit | ||
15413 | #undef vartab | 15412 | #undef vartab |
15414 | static int | 15413 | static int |
15415 | globals_var_size(int funcblocksize, struct globals_var *gvp) | 15414 | globals_var_size(int funcblocksize, struct globals_var *gvp) |
@@ -15426,9 +15425,6 @@ globals_var_size(int funcblocksize, struct globals_var *gvp) | |||
15426 | return funcblocksize; | 15425 | return funcblocksize; |
15427 | } | 15426 | } |
15428 | 15427 | ||
15429 | #undef preverrout_fd | ||
15430 | #undef lineno | ||
15431 | #undef linenovar | ||
15432 | static struct globals_var * | 15428 | static struct globals_var * |
15433 | globals_var_copy(struct globals_var *gvp) | 15429 | globals_var_copy(struct globals_var *gvp) |
15434 | { | 15430 | { |
@@ -15520,7 +15516,7 @@ forkshell_size(int funcblocksize, struct forkshell *fs) | |||
15520 | return funcblocksize; | 15516 | return funcblocksize; |
15521 | } | 15517 | } |
15522 | 15518 | ||
15523 | static struct forkshell * | 15519 | static void |
15524 | forkshell_copy(struct forkshell *fs, struct forkshell *new) | 15520 | forkshell_copy(struct forkshell *fs, struct forkshell *new) |
15525 | { | 15521 | { |
15526 | memcpy(new, fs, sizeof(struct forkshell)); /* non-pointer stuff */ | 15522 | memcpy(new, fs, sizeof(struct forkshell)); /* non-pointer stuff */ |
@@ -15538,7 +15534,6 @@ forkshell_copy(struct forkshell *fs, struct forkshell *new) | |||
15538 | ANNOT2("n", "argv"); | 15534 | ANNOT2("n", "argv"); |
15539 | ANNOT_NO_DUP(xasprintf("path '%s'", fs->path ?: "NULL")); | 15535 | ANNOT_NO_DUP(xasprintf("path '%s'", fs->path ?: "NULL")); |
15540 | ANNOT("varlist"); | 15536 | ANNOT("varlist"); |
15541 | return new; | ||
15542 | } | 15537 | } |
15543 | 15538 | ||
15544 | #if FORKSHELL_DEBUG | 15539 | #if FORKSHELL_DEBUG |