diff options
author | avos <avos@FreeBSD.org> | 2016-04-18 21:05:15 +0000 |
---|---|---|
committer | avos <avos@FreeBSD.org> | 2016-04-18 21:05:15 +0000 |
commit | f0171d33b464dee5ac308f1d13ede2ddd9d030a7 (patch) | |
tree | 202a73fe295a5c504dbcb0b6bd3dc404a648d308 /lib/libc/gen/devname.c | |
parent | 5c27d86f778aa8b18f17e8c4e62b679a4e5aab49 (diff) | |
download | FreeBSD-src-f0171d33b464dee5ac308f1d13ede2ddd9d030a7.zip FreeBSD-src-f0171d33b464dee5ac308f1d13ede2ddd9d030a7.tar.gz |
libc: do not include <sys/types.h> where <sys/param.h> was already included
According to style(9):
> normally, include <sys/types.h> OR <sys/param.h>, but not both.
(<sys/param.h> already includes <sys/types.h> when LOCORE is not defined).
Diffstat (limited to 'lib/libc/gen/devname.c')
-rw-r--r-- | lib/libc/gen/devname.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c index bf95645..120c284 100644 --- a/lib/libc/gen/devname.c +++ b/lib/libc/gen/devname.c @@ -33,14 +33,13 @@ static char sccsid[] = "@(#)devname.c 8.2 (Berkeley) 4/29/95"; #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include <sys/types.h> +#include <sys/param.h> #include <sys/sysctl.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> -#include <sys/param.h> #include <sys/stat.h> char * |