aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-10-14 13:28:05 +0100
committerRon Yorston <rmy@pobox.com>2021-10-14 13:28:05 +0100
commita0366fde4cadbdce03540c683611587dbcfb3c48 (patch)
tree1311cd03a05954ac05cacaf73bd986032ab86178 /shell
parent4daf57b4fdc80422d6448c0a7914699fdedb95b8 (diff)
downloadbusybox-w32-a0366fde4cadbdce03540c683611587dbcfb3c48.tar.gz
busybox-w32-a0366fde4cadbdce03540c683611587dbcfb3c48.tar.bz2
busybox-w32-a0366fde4cadbdce03540c683611587dbcfb3c48.zip
ash: silence compiler warnings
On 64-bit systems mingw-w64 defines pid_t as a 64-bit integer so some printf calls caused compiler warnings.
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 98da20f8a..f211df83a 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -5070,7 +5070,7 @@ showjob(struct job *jp, int mode)
5070 5070
5071 if (mode & SHOW_ONLY_PGID) { /* jobs -p */ 5071 if (mode & SHOW_ONLY_PGID) { /* jobs -p */
5072 /* just output process (group) id of pipeline */ 5072 /* just output process (group) id of pipeline */
5073 fprintf(out, "%d\n", ps->ps_pid); 5073 fprintf(out, "%"PID_FMT"d\n", ps->ps_pid);
5074 return; 5074 return;
5075 } 5075 }
5076 5076
@@ -5083,7 +5083,7 @@ showjob(struct job *jp, int mode)
5083 s[col - 3] = '-'; 5083 s[col - 3] = '-';
5084 5084
5085 if (mode & SHOW_PIDS) 5085 if (mode & SHOW_PIDS)
5086 col += fmtstr(s + col, 16, "%d ", ps->ps_pid); 5086 col += fmtstr(s + col, 16, "%"PID_FMT"d ", ps->ps_pid);
5087 5087
5088 psend = ps + jp->nprocs; 5088 psend = ps + jp->nprocs;
5089 5089
@@ -5114,7 +5114,7 @@ showjob(struct job *jp, int mode)
5114 s[0] = '\0'; 5114 s[0] = '\0';
5115 col = 33; 5115 col = 33;
5116 if (mode & SHOW_PIDS) 5116 if (mode & SHOW_PIDS)
5117 col = fmtstr(s, 48, "\n%*c%d ", indent_col, ' ', ps->ps_pid) - 1; 5117 col = fmtstr(s, 48, "\n%*c%"PID_FMT"d ", indent_col, ' ', ps->ps_pid) - 1;
5118 start: 5118 start:
5119#if ENABLE_PLATFORM_POSIX || JOBS_WIN32 5119#if ENABLE_PLATFORM_POSIX || JOBS_WIN32
5120 fprintf(out, "%s%*c%s%s", 5120 fprintf(out, "%s%*c%s%s",