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 | |
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')
-rw-r--r-- | bin/sh/jobs.c | 2 | ||||
-rw-r--r-- | bin/sh/mksyntax.c | 2 |
2 files changed, 2 insertions, 2 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'); diff --git a/bin/sh/mksyntax.c b/bin/sh/mksyntax.c index 0b5971d..07e558d 100644 --- a/bin/sh/mksyntax.c +++ b/bin/sh/mksyntax.c @@ -393,7 +393,7 @@ digit_convert(void) for (p = digit ; *p && *p != i ; p++); if (*p == '\0') p = digit; - fprintf(cfile, " %d,\n", p - digit); + fprintf(cfile, " %td,\n", p - digit); } fputs("};\n", cfile); } |