summaryrefslogtreecommitdiffstats
path: root/bin/sh/mksyntax.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-10-02 09:57:54 +0000
committertjr <tjr@FreeBSD.org>2002-10-02 09:57:54 +0000
commitaef5d44ac2ade131aba09b58aed0efe06c7b9a19 (patch)
treea1fc3ef9790553a38db1f9d0b342dd1c569a7e11 /bin/sh/mksyntax.c
parent42239faa4747820b5263ce6a3de8ff7bd2106fe9 (diff)
downloadFreeBSD-src-aef5d44ac2ade131aba09b58aed0efe06c7b9a19.zip
FreeBSD-src-aef5d44ac2ade131aba09b58aed0efe06c7b9a19.tar.gz
Use %d in a printf() format string and cast the argument to int instead of
using %td when we know that the number is between 0 and 9; mksyntax is a build tool and needs to work on -stable.
Diffstat (limited to 'bin/sh/mksyntax.c')
-rw-r--r--bin/sh/mksyntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/mksyntax.c b/bin/sh/mksyntax.c
index 07e558d..c44490e 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, " %td,\n", p - digit);
+ fprintf(cfile, " %d,\n", (int)(p - digit));
}
fputs("};\n", cfile);
}
OpenPOWER on IntegriCloud