Date: Sat, 12 Apr 2003 15:59:16 +0200 From: Johan Karlsson <johan@freebsd.org> To: sos@freebsd.org, FreeBSD-audit <audit@freebsd.org> Cc: sheldonh@freebsd.org Subject: makeing atacontrol WARNS=2 clean. Message-ID: <20030412135916.GA11752@numeri.campus.luth.se>
next in thread | raw e-mail | index | archive | help
--wac7ysb48OaltWcw Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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@FreeBSD.org --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="atacontrol.diff" 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"); --wac7ysb48OaltWcw--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030412135916.GA11752>