makeing atacontrol WARNS=2 clean.
Johan Karlsson
johan at freebsd.org
Sat Apr 12 06:59:19 PDT 2003
Hi Søren and others.
I intend to commit this patch to make atacontrol WARNS=2 clean.
I hope it's ok with you.
/Johan K
--
Johan Karlsson mailto:johan at FreeBSD.org
-------------- next part --------------
Index: atacontrol/Makefile
===================================================================
RCS file: /home/ncvs/src/sbin/atacontrol/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- atacontrol/Makefile 4 Dec 2001 02:19:43 -0000 1.6
+++ atacontrol/Makefile 10 Apr 2003 17:59:19 -0000
@@ -1,7 +1,6 @@
#$FreeBSD: src/sbin/atacontrol/Makefile,v 1.6 2001/12/04 02:19:43 obrien Exp $
PROG= atacontrol
-WARNS= 0
MAN= atacontrol.8
.include <bsd.prog.mk>
Index: atacontrol/atacontrol.c
===================================================================
RCS file: /home/ncvs/src/sbin/atacontrol/atacontrol.c,v
retrieving revision 1.20
diff -u -r1.20 atacontrol.c
--- atacontrol/atacontrol.c 22 Mar 2003 12:18:20 -0000 1.20
+++ atacontrol/atacontrol.c 24 Mar 2003 13:22:07 -0000
@@ -30,6 +30,7 @@
#include <sys/types.h>
#include <sys/ata.h>
+#include <sys/stdint.h>
#include <err.h>
#include <errno.h>
@@ -137,7 +138,7 @@
printf("lba48%ssupported ",
parm->support.address48 ? " " : " not ");
if (lbasize48)
- printf("%lld sectors\n", lbasize48);
+ printf("%ju sectors\n", (uintmax_t)lbasize48);
else
printf("\n");
More information about the freebsd-audit
mailing list