From 60356b1a211a0fcfe7dbd2e1dd280d6fc0170cf0 Mon Sep 17 00:00:00 2001 From: Arvind Sankar Date: Thu, 11 Jun 2020 16:25:39 -0400 Subject: Add include files for prototypes Include the header with prototypes in the file that provides definitions as well, to catch any mismatch between prototype and definition. Reviewed-by: Ryan Moeller Reviewed-by: Brian Behlendorf Signed-off-by: Arvind Sankar Closes #10470 --- cmd/zed/zed_event.c | 1 + cmd/zed/zed_exec.c | 1 + cmd/zed/zed_exec.h | 1 + cmd/zed/zed_file.c | 1 + 4 files changed, 4 insertions(+) (limited to 'cmd') diff --git a/cmd/zed/zed_event.c b/cmd/zed/zed_event.c index 2a7ff16fd..197c25386 100644 --- a/cmd/zed/zed_event.c +++ b/cmd/zed/zed_event.c @@ -28,6 +28,7 @@ #include "zed.h" #include "zed_conf.h" #include "zed_disk_event.h" +#include "zed_event.h" #include "zed_exec.h" #include "zed_file.h" #include "zed_log.h" diff --git a/cmd/zed/zed_exec.c b/cmd/zed/zed_exec.c index 037037168..08b7b5568 100644 --- a/cmd/zed/zed_exec.c +++ b/cmd/zed/zed_exec.c @@ -22,6 +22,7 @@ #include #include #include +#include "zed_exec.h" #include "zed_file.h" #include "zed_log.h" #include "zed_strings.h" diff --git a/cmd/zed/zed_exec.h b/cmd/zed/zed_exec.h index 69179c92c..4153e5519 100644 --- a/cmd/zed/zed_exec.h +++ b/cmd/zed/zed_exec.h @@ -16,6 +16,7 @@ #define ZED_EXEC_H #include +#include "zed_strings.h" int zed_exec_process(uint64_t eid, const char *class, const char *subclass, const char *dir, zed_strings_t *zedlets, zed_strings_t *envs, diff --git a/cmd/zed/zed_file.c b/cmd/zed/zed_file.c index 3a1a661fa..c3cf3d421 100644 --- a/cmd/zed/zed_file.c +++ b/cmd/zed/zed_file.c @@ -20,6 +20,7 @@ #include #include #include +#include "zed_file.h" #include "zed_log.h" /* -- cgit v1.2.3