Add missing include guards

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-10-27 21:32:37 +01:00
parent bf448fc6a1
commit 4c6aa23dba
4 changed files with 16 additions and 0 deletions

View File

@ -22,6 +22,8 @@
* MA 02110-1301, USA.
*/
#ifndef SYSKLOGD_KLOGD_H_
#define SYSKLOGD_KLOGD_H_
#include <stdio.h>
#include <syslog.h>
@ -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_ */

View File

@ -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_ */

View File

@ -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_ */

View File

@ -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_ */