diff options
| author | Ron Yorston <rmy@pobox.com> | 2026-01-30 08:47:45 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2026-01-30 08:47:45 +0000 |
| commit | 7f32f25ba1652f799e9e7ffe756dcee08c710e70 (patch) | |
| tree | 9232af6fdce53f02ff45a25c21017c3cd9212492 /shell | |
| parent | 4c41b562c07c20c6df03d0cda3e28bda3295ffba (diff) | |
| download | busybox-w32-7f32f25ba1652f799e9e7ffe756dcee08c710e70.tar.gz busybox-w32-7f32f25ba1652f799e9e7ffe756dcee08c710e70.tar.bz2 busybox-w32-7f32f25ba1652f799e9e7ffe756dcee08c710e70.zip | |
ash: remove unnecessary conditional compilation
Additional support for background jobs was added in commits
010abea6f and 1403d81c4.
The condition ENABLE_PLATFORM_POSIX || JOBS_WIN32 in showjob()
is always true. The conditional compilation can be removed.
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/ash.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c index 90e9168be..898b468cd 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
| @@ -5366,16 +5366,12 @@ showjob(struct job *jp, int mode) | |||
| 5366 | if (mode & SHOW_PIDS) | 5366 | if (mode & SHOW_PIDS) |
| 5367 | col = fmtstr(s, 48, "\n%*c%"PID_FMT"d ", indent_col, ' ', ps->ps_pid) - 1; | 5367 | col = fmtstr(s, 48, "\n%*c%"PID_FMT"d ", indent_col, ' ', ps->ps_pid) - 1; |
| 5368 | start: | 5368 | start: |
| 5369 | #if ENABLE_PLATFORM_POSIX || JOBS_WIN32 | ||
| 5370 | fprintf(out, "%s%*c%s%s", | 5369 | fprintf(out, "%s%*c%s%s", |
| 5371 | s, | 5370 | s, |
| 5372 | 33 - col >= 0 ? 33 - col : 0, ' ', | 5371 | 33 - col >= 0 ? 33 - col : 0, ' ', |
| 5373 | ps == jp->ps ? "" : "| ", | 5372 | ps == jp->ps ? "" : "| ", |
| 5374 | ps->ps_cmd | 5373 | ps->ps_cmd |
| 5375 | ); | 5374 | ); |
| 5376 | #else | ||
| 5377 | fprintf(out, "%s", s); | ||
| 5378 | #endif | ||
| 5379 | } while (++ps != psend); | 5375 | } while (++ps != psend); |
| 5380 | newline_and_flush(out); | 5376 | newline_and_flush(out); |
| 5381 | 5377 | ||
