diff options
author | araujo <araujo@FreeBSD.org> | 2015-06-01 06:14:17 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2015-06-01 06:14:17 +0000 |
commit | 3f5fa5a6f7316c1633b4df6b94f9204e57e8d1b9 (patch) | |
tree | 11fa2a1794863ee4a3e328cb65f67472ad1ca646 /contrib/diff/src | |
parent | 5e0a4eba4f94766c99192f4d0450213169dc07b8 (diff) | |
download | FreeBSD-src-3f5fa5a6f7316c1633b4df6b94f9204e57e8d1b9.zip FreeBSD-src-3f5fa5a6f7316c1633b4df6b94f9204e57e8d1b9.tar.gz |
Fix the wrong format, format specifies type 'int' but the argument has type
'long', it was spotted by clang.
Differential Revision: D2663
Reviewed by: imp, rodrigc
Diffstat (limited to 'contrib/diff/src')
-rw-r--r-- | contrib/diff/src/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/diff/src/context.c b/contrib/diff/src/context.c index 4937ce2..73bde69 100644 --- a/contrib/diff/src/context.c +++ b/contrib/diff/src/context.c @@ -62,7 +62,7 @@ print_context_label (char const *mark, { time_t sec = inf->stat.st_mtime; verify (info_preserved, sizeof inf->stat.st_mtime <= sizeof sec); - sprintf (buf, "%jd.%.9d", (intmax_t)sec, nsec); + sprintf (buf, "%jd.%.9ld", (intmax_t)sec, nsec); } fprintf (outfile, "%s %s\t%s\n", mark, inf->name, buf); } |