diff options
author | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:19 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:19 +0000 |
commit | a782f0b8bd315c02033a4fb363e550bd467101c7 (patch) | |
tree | 8a4bdcc7b13b351076583f8136d9f3cd310718b6 /usr.sbin/lpr | |
parent | 8ce8b3ae17aae9323001285d2530d9b793f3c36d (diff) | |
download | FreeBSD-src-a782f0b8bd315c02033a4fb363e550bd467101c7.zip FreeBSD-src-a782f0b8bd315c02033a4fb363e550bd467101c7.tar.gz |
Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r-- | usr.sbin/lpr/lpr/lpr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c index 9ae72f6..af7c807 100644 --- a/usr.sbin/lpr/lpr/lpr.c +++ b/usr.sbin/lpr/lpr/lpr.c @@ -75,6 +75,7 @@ __FBSDID("$FreeBSD$"); #include <grp.h> #include <unistd.h> #include <stdlib.h> +#include <stdint.h> #include <stdio.h> #include <ctype.h> #include <string.h> @@ -386,8 +387,8 @@ main(int argc, char *argv[]) continue; /* file unreasonable */ if (sflag && (cp = linked(arg)) != NULL) { - (void) snprintf(buf, sizeof(buf), "%u %u", statb.st_dev, - statb.st_ino); + (void)snprintf(buf, sizeof(buf), "%u %ju", + statb.st_dev, (uintmax_t)statb.st_ino); card('S', buf); if (format == 'p') card('T', title ? title : arg); |