aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorMatthew D Fleming <mdf@FreeBSD.org>2012-09-27 23:31:19 +0000
committerMatthew D Fleming <mdf@FreeBSD.org>2012-09-27 23:31:19 +0000
commitb424efd5b11685876e5e8bb564068cee4a2bff4b (patch)
tree8a4bdcc7b13b351076583f8136d9f3cd310718b6 /usr.sbin/lpr
parent6db1a7f11e0f890229ef43a9e554b89756afa8c5 (diff)
downloadsrc-b424efd5b11685876e5e8bb564068cee4a2bff4b.tar.gz
src-b424efd5b11685876e5e8bb564068cee4a2bff4b.zip
Notes
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lpr/lpr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c
index 9ae72f6110cc..af7c807a1e08 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);