diff options
author | mux <mux@FreeBSD.org> | 2002-10-01 08:40:07 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2002-10-01 08:40:07 +0000 |
commit | b07890219d03ebde66843fb8c43dd7f540177816 (patch) | |
tree | 23b53b4451b1876dd5047410cc043dc2ba4b8b86 /bin/sh/jobs.c | |
parent | abffc58780e7002c43104b8927963b95d55df46f (diff) | |
download | FreeBSD-src-b07890219d03ebde66843fb8c43dd7f540177816.zip FreeBSD-src-b07890219d03ebde66843fb8c43dd7f540177816.tar.gz |
Use the %t format modifier to print differences between
pointers. This fixes two format warnings on 64 bits
archs which are fatal now that WFORMAT=0 has been removed.
It doesn't fully fix the sh(1) build on 64 bits platforms
though, there is still some quad_t issues that need to be
fixed.
Tested on: i386, sparc64
Diffstat (limited to 'bin/sh/jobs.c')
-rw-r--r-- | bin/sh/jobs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index 89aecea..d4e966c 100644 --- a/bin/sh/jobs.c +++ b/bin/sh/jobs.c @@ -221,7 +221,7 @@ bgcmd(int argc, char **argv) continue; restartjob(jp); jp->foreground = 0; - fmtstr(s, 64, "[%d] ", jp - jobtab + 1); + fmtstr(s, 64, "[%td] ", jp - jobtab + 1); out1str(s); out1str(jp->ps[0].cmd); out1c('\n'); |