diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2025-08-09 02:02:04 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2025-08-09 02:02:04 +0200 |
| commit | 98b1a000c98cc6e91bae702c2f2f3824bbd7420a (patch) | |
| tree | eca794e4a919b6de0004d17b06bc417579ecef72 /shell | |
| parent | fa82ef1a2ec558bb8e624461851a0d1fcbc0a0b6 (diff) | |
| download | busybox-w32-98b1a000c98cc6e91bae702c2f2f3824bbd7420a.tar.gz busybox-w32-98b1a000c98cc6e91bae702c2f2f3824bbd7420a.tar.bz2 busybox-w32-98b1a000c98cc6e91bae702c2f2f3824bbd7420a.zip | |
ash: jobs: drop unused node parameter in makejob()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/ash.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/ash.c b/shell/ash.c index 0752629ee..e8ac07cf0 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
| @@ -3664,7 +3664,7 @@ struct job { | |||
| 3664 | struct job *prev_job; /* previous job */ | 3664 | struct job *prev_job; /* previous job */ |
| 3665 | }; | 3665 | }; |
| 3666 | 3666 | ||
| 3667 | static struct job *makejob(/*union node *,*/ int); | 3667 | static struct job *makejob(int); |
| 3668 | static int forkshell(struct job *, union node *, int); | 3668 | static int forkshell(struct job *, union node *, int); |
| 3669 | static int waitforjob(struct job *); | 3669 | static int waitforjob(struct job *); |
| 3670 | 3670 | ||
| @@ -4801,7 +4801,7 @@ growjobtab(void) | |||
| 4801 | * Called with interrupts off. | 4801 | * Called with interrupts off. |
| 4802 | */ | 4802 | */ |
| 4803 | static struct job * | 4803 | static struct job * |
| 4804 | makejob(/*union node *node,*/ int nprocs) | 4804 | makejob(int nprocs) |
| 4805 | { | 4805 | { |
| 4806 | int i; | 4806 | int i; |
| 4807 | struct job *jp; | 4807 | struct job *jp; |
| @@ -6628,7 +6628,7 @@ evalbackcmd(union node *n, struct backcmd *result | |||
| 6628 | if (pipe(pip) < 0) | 6628 | if (pipe(pip) < 0) |
| 6629 | ash_msg_and_raise_perror("can't create pipe"); | 6629 | ash_msg_and_raise_perror("can't create pipe"); |
| 6630 | /* process substitution uses NULL job, like openhere() */ | 6630 | /* process substitution uses NULL job, like openhere() */ |
| 6631 | jp = (ctl == CTLBACKQ) ? makejob(/*n,*/ 1) : NULL; | 6631 | jp = (ctl == CTLBACKQ) ? makejob(1) : NULL; |
| 6632 | if (forkshell(jp, n, FORK_NOJOB) == 0) { | 6632 | if (forkshell(jp, n, FORK_NOJOB) == 0) { |
| 6633 | /* child */ | 6633 | /* child */ |
| 6634 | FORCE_INT_ON; | 6634 | FORCE_INT_ON; |
| @@ -9608,7 +9608,7 @@ evalsubshell(union node *n, int flags) | |||
| 9608 | INT_OFF; | 9608 | INT_OFF; |
| 9609 | if (backgnd == FORK_FG) | 9609 | if (backgnd == FORK_FG) |
| 9610 | get_tty_state(); | 9610 | get_tty_state(); |
| 9611 | jp = makejob(/*n,*/ 1); | 9611 | jp = makejob(1); |
| 9612 | if (forkshell(jp, n, backgnd) == 0) { | 9612 | if (forkshell(jp, n, backgnd) == 0) { |
| 9613 | /* child */ | 9613 | /* child */ |
| 9614 | INT_ON; | 9614 | INT_ON; |
| @@ -9715,7 +9715,7 @@ evalpipe(union node *n, int flags) | |||
| 9715 | INT_OFF; | 9715 | INT_OFF; |
| 9716 | if (n->npipe.pipe_backgnd == 0) | 9716 | if (n->npipe.pipe_backgnd == 0) |
| 9717 | get_tty_state(); | 9717 | get_tty_state(); |
| 9718 | jp = makejob(/*n,*/ pipelen); | 9718 | jp = makejob(pipelen); |
| 9719 | prevfd = -1; | 9719 | prevfd = -1; |
| 9720 | for (lp = n->npipe.cmdlist; lp; lp = lp->next) { | 9720 | for (lp = n->npipe.cmdlist; lp; lp = lp->next) { |
| 9721 | prehash(lp->n); | 9721 | prehash(lp->n); |
| @@ -10618,7 +10618,7 @@ evalcommand(union node *cmd, int flags) | |||
| 10618 | /* No, forking off a child is necessary */ | 10618 | /* No, forking off a child is necessary */ |
| 10619 | INT_OFF; | 10619 | INT_OFF; |
| 10620 | get_tty_state(); | 10620 | get_tty_state(); |
| 10621 | jp = makejob(/*cmd,*/ 1); | 10621 | jp = makejob(1); |
| 10622 | if (forkshell(jp, cmd, FORK_FG) != 0) { | 10622 | if (forkshell(jp, cmd, FORK_FG) != 0) { |
| 10623 | /* parent */ | 10623 | /* parent */ |
| 10624 | break; | 10624 | break; |
