summaryrefslogtreecommitdiffstats
path: root/sbin/atacontrol
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/atacontrol')
-rw-r--r--sbin/atacontrol/Makefile1
-rw-r--r--sbin/atacontrol/atacontrol.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/atacontrol/Makefile b/sbin/atacontrol/Makefile
index 95c9298..9881273 100644
--- a/sbin/atacontrol/Makefile
+++ b/sbin/atacontrol/Makefile
@@ -1,7 +1,6 @@
#$FreeBSD$
PROG= atacontrol
-WARNS= 0
MAN= atacontrol.8
.include <bsd.prog.mk>
diff --git a/sbin/atacontrol/atacontrol.c b/sbin/atacontrol/atacontrol.c
index c55e399..d453d2a 100644
--- a/sbin/atacontrol/atacontrol.c
+++ b/sbin/atacontrol/atacontrol.c
@@ -34,6 +34,7 @@
#include <err.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -137,7 +138,7 @@ cap_print(struct ata_params *parm)
printf("lba48%ssupported ",
parm->support.address48 ? " " : " not ");
if (lbasize48)
- printf("%lld sectors\n", lbasize48);
+ printf("%ju sectors\n", (uintmax_t)lbasize48);
else
printf("\n");
OpenPOWER on IntegriCloud