makeing atacontrol WARNS=2 clean.

Tim Robbins tjr at FreeBSD.ORG
Sat Apr 12 07:11:48 PDT 2003


On Sat, Apr 12, 2003 at 03:59:16PM +0200, Johan Karlsson wrote:

> Hi Søren and others.
> 
> I intend to commit this patch to make atacontrol WARNS=2 clean.
> 
> I hope it's ok with you.
[...]

>  .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>

It would be better to use <stdint.h> here, even though it is exactly the same
as <sys/stdint.h>.


Tim


More information about the freebsd-audit mailing list