summaryrefslogtreecommitdiff
path: root/usr.bin/file/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/file/file.c')
-rw-r--r--usr.bin/file/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/file/file.c b/usr.bin/file/file.c
index 904456443ff..a0eb5a267ba 100644
--- a/usr.bin/file/file.c
+++ b/usr.bin/file/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.67 2019/01/06 18:35:19 tedu Exp $ */
+/* $OpenBSD: file.c,v 1.68 2019/02/05 02:17:32 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -539,12 +539,12 @@ try_stat(struct input_file *inf)
xasprintf(&inf->result, "socket");
return (1);
case S_IFBLK:
- xasprintf(&inf->result, "block special (%ld/%ld)",
+ xasprintf(&inf->result, "block special (%lu/%lu)",
(long)major(inf->msg->sb.st_rdev),
(long)minor(inf->msg->sb.st_rdev));
return (1);
case S_IFCHR:
- xasprintf(&inf->result, "character special (%ld/%ld)",
+ xasprintf(&inf->result, "character special (%lu/%lu)",
(long)major(inf->msg->sb.st_rdev),
(long)minor(inf->msg->sb.st_rdev));
return (1);