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/mksyntax.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/mksyntax.c')
-rw-r--r-- | bin/sh/mksyntax.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |