From 4c6aa23dba464761ce76ef70812526492be0a10c Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 27 Oct 2019 21:32:37 +0100 Subject: [PATCH] Add missing include guards Signed-off-by: Joachim Nilsson --- src/klogd.h | 4 ++++ src/ksyms.h | 4 ++++ src/module.h | 3 +++ src/pidfile.h | 5 +++++ 4 files changed, 16 insertions(+) diff --git a/src/klogd.h b/src/klogd.h index f8900be..c47df52 100644 --- a/src/klogd.h +++ b/src/klogd.h @@ -22,6 +22,8 @@ * MA 02110-1301, USA. */ +#ifndef SYSKLOGD_KLOGD_H_ +#define SYSKLOGD_KLOGD_H_ #include #include @@ -32,3 +34,5 @@ extern int InitMsyms(void); extern char *ExpandKadds(char *, char *); extern void SetParanoiaLevel(int); extern void Syslog(int priority, char *fmt, ...); + +#endif /* SYSKLOGD_KLOGD_H_ */ diff --git a/src/ksyms.h b/src/ksyms.h index 79b3635..a15f435 100644 --- a/src/ksyms.h +++ b/src/ksyms.h @@ -23,6 +23,8 @@ * MA 02110-1301, USA. */ +#ifndef SYSKLOGD_KSYMS_H_ +#define SYSKLOGD_KSYMS_H_ struct symbol { char *name; @@ -32,3 +34,5 @@ struct symbol { extern char *LookupSymbol(unsigned long, struct symbol *); extern char *LookupModuleSymbol(unsigned long int, struct symbol *); + +#endif /* SYSKLOGD_KSYMS_H_ */ diff --git a/src/module.h b/src/module.h index d86238b..ee666ce 100644 --- a/src/module.h +++ b/src/module.h @@ -23,6 +23,8 @@ * MA 02110-1301, USA. */ +#ifndef SYSKLOGD_MODULE_H_ +#define SYSKLOGD_MODULE_H_ struct sym_table { unsigned long value; @@ -36,3 +38,4 @@ struct Module { char *name; }; +#endif /* SYSKLOGD_MODULE_H_ */ diff --git a/src/pidfile.h b/src/pidfile.h index 5bd9cf4..6e2a03a 100644 --- a/src/pidfile.h +++ b/src/pidfile.h @@ -22,6 +22,9 @@ * MA 02110-1301, USA. */ +#ifndef SYSKLOGD_PIDFILE_H_ +#define SYSKLOGD_PIDFILE_H_ + /* read_pid * * Reads the specified pidfile and returns the read pid. @@ -58,3 +61,5 @@ int touch_pid (char *pidfile); * is returned */ int remove_pid (char *pidfile); + +#endif /* SYSKLOGD_PIDFILE_H_ */