diff options
author | des <des@FreeBSD.org> | 2009-06-13 00:06:52 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2009-06-13 00:06:52 +0000 |
commit | 79af22e74c6d99535ff7919ffdb68531c9835bb9 (patch) | |
tree | 419108b4847e81938bb5974577b6ce0035a274c3 /usr.sbin/nscd | |
parent | c5f5062dab002ecbf8bcfd156b776a9caccaf998 (diff) | |
download | FreeBSD-src-79af22e74c6d99535ff7919ffdb68531c9835bb9.zip FreeBSD-src-79af22e74c6d99535ff7919ffdb68531c9835bb9.tar.gz |
#include cleanup
MFC after: 1 week
Diffstat (limited to 'usr.sbin/nscd')
-rw-r--r-- | usr.sbin/nscd/cachelib.h | 3 | ||||
-rw-r--r-- | usr.sbin/nscd/cacheplcs.c | 4 | ||||
-rw-r--r-- | usr.sbin/nscd/cacheplcs.h | 2 | ||||
-rw-r--r-- | usr.sbin/nscd/config.c | 6 | ||||
-rw-r--r-- | usr.sbin/nscd/config.h | 5 | ||||
-rw-r--r-- | usr.sbin/nscd/hashtable.h | 1 | ||||
-rw-r--r-- | usr.sbin/nscd/mp_rs_query.c | 8 | ||||
-rw-r--r-- | usr.sbin/nscd/nscd.c | 5 | ||||
-rw-r--r-- | usr.sbin/nscd/parser.c | 4 | ||||
-rw-r--r-- | usr.sbin/nscd/protocol.h | 2 | ||||
-rw-r--r-- | usr.sbin/nscd/query.c | 5 | ||||
-rw-r--r-- | usr.sbin/nscd/query.h | 3 | ||||
-rw-r--r-- | usr.sbin/nscd/singletons.c | 2 |
13 files changed, 28 insertions, 22 deletions
diff --git a/usr.sbin/nscd/cachelib.h b/usr.sbin/nscd/cachelib.h index b1c8af8..a80bd48 100644 --- a/usr.sbin/nscd/cachelib.h +++ b/usr.sbin/nscd/cachelib.h @@ -29,9 +29,6 @@ #ifndef __NSCD_CACHELIB_H__ #define __NSCD_CACHELIB_H__ -#include <sys/queue.h> -#include <sys/time.h> -#include <stdlib.h> #include "hashtable.h" #include "cacheplcs.h" diff --git a/usr.sbin/nscd/cacheplcs.c b/usr.sbin/nscd/cacheplcs.c index 7010ce8..6f45b5a 100644 --- a/usr.sbin/nscd/cacheplcs.c +++ b/usr.sbin/nscd/cacheplcs.c @@ -28,8 +28,12 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/time.h> + #include <assert.h> +#include <stdlib.h> #include <string.h> + #include "cacheplcs.h" #include "debug.h" diff --git a/usr.sbin/nscd/cacheplcs.h b/usr.sbin/nscd/cacheplcs.h index 65b3230..cc1ff5d 100644 --- a/usr.sbin/nscd/cacheplcs.h +++ b/usr.sbin/nscd/cacheplcs.h @@ -30,8 +30,6 @@ #define __NSCD_CACHEPLCS_H__ #include <sys/queue.h> -#include <sys/time.h> -#include <stdlib.h> /* common policy definitions */ #define CACHELIB_MAX_FREQUENCY 100 diff --git a/usr.sbin/nscd/config.c b/usr.sbin/nscd/config.c index 5f20ad3..a3ec506 100644 --- a/usr.sbin/nscd/config.c +++ b/usr.sbin/nscd/config.c @@ -28,11 +28,17 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/stat.h> +#include <sys/time.h> + #include <assert.h> #include <math.h> +#include <nsswitch.h> +#include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> + #include "config.h" #include "debug.h" #include "log.h" diff --git a/usr.sbin/nscd/config.h b/usr.sbin/nscd/config.h index a3205c9..521db62 100644 --- a/usr.sbin/nscd/config.h +++ b/usr.sbin/nscd/config.h @@ -29,11 +29,6 @@ #ifndef __NSCD_CONFIG_H__ #define __NSCD_CONFIG_H__ -#include <sys/stat.h> -#include <sys/types.h> -#include <pthread.h> -#include <nsswitch.h> -#include <unistd.h> #include "cachelib.h" #define DEFAULT_QUERY_TIMEOUT 8 diff --git a/usr.sbin/nscd/hashtable.h b/usr.sbin/nscd/hashtable.h index 137820e..a763bf0 100644 --- a/usr.sbin/nscd/hashtable.h +++ b/usr.sbin/nscd/hashtable.h @@ -29,7 +29,6 @@ #ifndef __CACHELIB_HASHTABLE_H__ #define __CACHELIB_HASHTABLE_H__ -#include <search.h> #include <string.h> #define HASHTABLE_INITIAL_ENTRIES_CAPACITY 8 diff --git a/usr.sbin/nscd/mp_rs_query.c b/usr.sbin/nscd/mp_rs_query.c index c1569e9..9e99884 100644 --- a/usr.sbin/nscd/mp_rs_query.c +++ b/usr.sbin/nscd/mp_rs_query.c @@ -28,15 +28,17 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include <sys/socket.h> -#include <sys/time.h> #include <sys/types.h> #include <sys/event.h> +#include <sys/socket.h> +#include <sys/time.h> + #include <assert.h> #include <errno.h> +#include <nsswitch.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> -#include <stdio.h> #include "cachelib.h" #include "config.h" diff --git a/usr.sbin/nscd/nscd.c b/usr.sbin/nscd/nscd.c index 1739fac..05d37a0 100644 --- a/usr.sbin/nscd/nscd.c +++ b/usr.sbin/nscd/nscd.c @@ -28,12 +28,13 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include <sys/types.h> +#include <sys/param.h> #include <sys/event.h> #include <sys/socket.h> +#include <sys/stat.h> #include <sys/time.h> -#include <sys/param.h> #include <sys/un.h> + #include <assert.h> #include <err.h> #include <errno.h> diff --git a/usr.sbin/nscd/parser.c b/usr.sbin/nscd/parser.c index b877efa..a36821a 100644 --- a/usr.sbin/nscd/parser.c +++ b/usr.sbin/nscd/parser.c @@ -28,9 +28,13 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/time.h> + #include <assert.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> + #include "config.h" #include "debug.h" #include "log.h" diff --git a/usr.sbin/nscd/protocol.h b/usr.sbin/nscd/protocol.h index 6894d3c..2df9b81 100644 --- a/usr.sbin/nscd/protocol.h +++ b/usr.sbin/nscd/protocol.h @@ -29,8 +29,6 @@ #ifndef __NSCD_PROTOCOL_H__ #define __NSCD_PROTOCOL_H__ -#include <stdlib.h> - /* maximum buffer size to receive - larger buffers are not allowed */ #define MAX_BUFFER_SIZE (1 << 20) diff --git a/usr.sbin/nscd/query.c b/usr.sbin/nscd/query.c index 4b75093..9cc1334 100644 --- a/usr.sbin/nscd/query.c +++ b/usr.sbin/nscd/query.c @@ -29,15 +29,18 @@ __FBSDID("$FreeBSD$"); #include <sys/types.h> +#include <sys/event.h> #include <sys/socket.h> #include <sys/time.h> -#include <sys/event.h> + #include <assert.h> #include <errno.h> #include <nsswitch.h> #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> + #include "config.h" #include "debug.h" #include "query.h" diff --git a/usr.sbin/nscd/query.h b/usr.sbin/nscd/query.h index 383d806..32c6248 100644 --- a/usr.sbin/nscd/query.h +++ b/usr.sbin/nscd/query.h @@ -29,9 +29,6 @@ #ifndef __NSCD_QUERY_H__ #define __NSCD_QUERY_H__ -#include <sys/types.h> -#include <stdlib.h> -#include <unistd.h> #include "cachelib.h" #include "config.h" #include "protocol.h" diff --git a/usr.sbin/nscd/singletons.c b/usr.sbin/nscd/singletons.c index 669d12b..e557c20 100644 --- a/usr.sbin/nscd/singletons.c +++ b/usr.sbin/nscd/singletons.c @@ -28,6 +28,8 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/time.h> + #include "singletons.h" struct configuration *s_configuration = NULL; |