diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-09 10:29:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-11-09 10:29:58 +0000 |
commit | 090b53c17d70324947a49e8f5feb9cdc577cc989 (patch) | |
tree | ec0cd116b154399c850f6f89240e5e6b47d79519 /libsbutil/src | |
parent | cleanup whitespace and comments -- no functional changes (diff) | |
download | sandbox-090b53c17d70324947a49e8f5feb9cdc577cc989.tar.gz sandbox-090b53c17d70324947a49e8f5feb9cdc577cc989.tar.bz2 sandbox-090b53c17d70324947a49e8f5feb9cdc577cc989.zip |
headers.h: consolidate all random system includes into one file
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsbutil/src')
-rw-r--r-- | libsbutil/src/config.c | 5 | ||||
-rw-r--r-- | libsbutil/src/debug.c | 9 | ||||
-rw-r--r-- | libsbutil/src/dynbuf.c | 7 | ||||
-rw-r--r-- | libsbutil/src/file.c | 11 | ||||
-rw-r--r-- | libsbutil/src/simple-regex.c | 6 | ||||
-rw-r--r-- | libsbutil/src/string.c | 4 |
6 files changed, 6 insertions, 36 deletions
diff --git a/libsbutil/src/config.c b/libsbutil/src/config.c index 3f4e6e1..664ec2a 100644 --- a/libsbutil/src/config.c +++ b/libsbutil/src/config.c @@ -8,10 +8,7 @@ * Licensed under the GPL-2 */ -#include <errno.h> -#include <string.h> -#include <stdlib.h> - +#include "headers.h" #include "rcscripts/rcutil.h" /* This handles simple 'entry="bar"' type variables. If it is more complex diff --git a/libsbutil/src/debug.c b/libsbutil/src/debug.c index 1d84b74..26f926a 100644 --- a/libsbutil/src/debug.c +++ b/libsbutil/src/debug.c @@ -8,14 +8,7 @@ * Licensed under the GPL-2 */ -#include <errno.h> -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <unistd.h> -#include <fcntl.h> - +#include "headers.h" #include "rcscripts/rcutil.h" volatile static bool debug_enabled = TRUE; diff --git a/libsbutil/src/dynbuf.c b/libsbutil/src/dynbuf.c index 16bbdcc..c9186a7 100644 --- a/libsbutil/src/dynbuf.c +++ b/libsbutil/src/dynbuf.c @@ -8,12 +8,7 @@ * Licensed under the GPL-2 */ -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <unistd.h> - +#include "headers.h" #include "rcscripts/rcutil.h" #define DYNAMIC_BUFFER_SIZE (sizeof (char) * 2 * 1024) diff --git a/libsbutil/src/file.c b/libsbutil/src/file.c index c94cae1..5956406 100644 --- a/libsbutil/src/file.c +++ b/libsbutil/src/file.c @@ -8,16 +8,7 @@ * Licensed under the GPL-2 */ -#include <errno.h> -#include <string.h> -#include <stdlib.h> -#include <sys/mman.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <dirent.h> -#include <unistd.h> -#include <fcntl.h> - +#include "headers.h" #include "rcscripts/rcutil.h" bool diff --git a/libsbutil/src/simple-regex.c b/libsbutil/src/simple-regex.c index 0e0020b..61eff6d 100644 --- a/libsbutil/src/simple-regex.c +++ b/libsbutil/src/simple-regex.c @@ -49,11 +49,7 @@ * */ -#include <errno.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - +#include "headers.h" #include "rcscripts/rcutil.h" /* Macro to check if a regex_data_t pointer is valid */ diff --git a/libsbutil/src/string.c b/libsbutil/src/string.c index 3e23417..4ebb61c 100644 --- a/libsbutil/src/string.c +++ b/libsbutil/src/string.c @@ -8,9 +8,7 @@ * Licensed under the GPL-2 */ -#include <string.h> -#include <stdlib.h> - +#include "headers.h" #include "rcscripts/rcutil.h" char * |