diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-12-21 19:14:32 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-12-21 21:42:30 +0100 |
commit | 0161ebe484005e948eab6b12bc3942e62a22819b (patch) | |
tree | 2ce4079b1687a45010f3a426c447c89e8e210103 /scripts | |
parent | a4577c427a76c6a337b7812f9da7700c2c8beb89 (diff) | |
download | lvm2-0161ebe484005e948eab6b12bc3942e62a22819b.tar.gz |
scripts: simplify including for generator
Uses included .c file as primary header includer.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/generator-internals.c | 2 | ||||
-rw-r--r-- | scripts/lvm2_activation_generator_systemd_red_hat.c | 20 |
2 files changed, 2 insertions, 20 deletions
diff --git a/scripts/generator-internals.c b/scripts/generator-internals.c index 9619e8c9c..9919247a4 100644 --- a/scripts/generator-internals.c +++ b/scripts/generator-internals.c @@ -1,6 +1,8 @@ // This file contains the unit testable parts of // lvm2_activation_generator_systemd_red_hat +#include "device_mapper/all.h" + #include <ctype.h> #include <errno.h> #include <fcntl.h> diff --git a/scripts/lvm2_activation_generator_systemd_red_hat.c b/scripts/lvm2_activation_generator_systemd_red_hat.c index b44c8f0e9..a3a3e88ae 100644 --- a/scripts/lvm2_activation_generator_systemd_red_hat.c +++ b/scripts/lvm2_activation_generator_systemd_red_hat.c @@ -12,29 +12,9 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <ctype.h> -#include <errno.h> -#include <fcntl.h> -#include <limits.h> /* For PATH_MAX for musl libc */ -#include <stdarg.h> -#include <stdbool.h> -#include <stdio.h> -#include <string.h> -#include <syslog.h> -#include <sys/stat.h> -#include <sys/types.h> -#include <sys/wait.h> -#include <unistd.h> - -#include "configure.h" -#include "device_mapper/all.h" - -//---------------------------------------------------------------- - // Code in this file gets included in the unit tests. #include "generator-internals.c" -//---------------------------------------------------------------- // Logging #define KMSG_DEV_PATH "/dev/kmsg" |