diff options
author | tjr <tjr@FreeBSD.org> | 2002-10-06 03:20:27 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-10-06 03:20:27 +0000 |
commit | 0eb784108f8156b21532f312b82f257745c8288a (patch) | |
tree | 2f6c8a318c4c4c9b5eb52c79314a73ee9582e5ea /bin/pax/cpio.c | |
parent | b07b696b7321da904b128d81acd44d229e1e7acf (diff) | |
download | FreeBSD-src-0eb784108f8156b21532f312b82f257745c8288a.zip FreeBSD-src-0eb784108f8156b21532f312b82f257745c8288a.tar.gz |
Fix format string errors relating mainly to the use of %qu to print off_t's.
Instead use %ju and cast the argument.
WFORMAT=0 is still required in the Makefile because gcc warns about
some strftime() calls (I don't think this behaviour is useful.)
Tested on: sparc64, alpha, i386
Diffstat (limited to 'bin/pax/cpio.c')
-rw-r--r-- | bin/pax/cpio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/pax/cpio.c b/bin/pax/cpio.c index ed403db..779e5f9 100644 --- a/bin/pax/cpio.c +++ b/bin/pax/cpio.c @@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$"); #include <sys/time.h> #include <sys/stat.h> #include <string.h> +#include <stdint.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> @@ -223,8 +224,8 @@ rd_ln_nm(ARCHD *arcn) paxwarn(1, "Cpio link name length is invalid: %lu", arcn->sb.st_size); # else - paxwarn(1, "Cpio link name length is invalid: %qu", - arcn->sb.st_size); + paxwarn(1, "Cpio link name length is invalid: %ju", + (uintmax_t)arcn->sb.st_size); # endif return(-1); } |