diff --git a/alertik.c b/alertik.c index 6630909..76f81fb 100644 --- a/alertik.c +++ b/alertik.c @@ -7,7 +7,6 @@ #include #include -#include "alertik.h" #include "events.h" #include "env_events.h" #include "log.h" diff --git a/alertik.h b/alertik.h deleted file mode 100644 index 9193b0f..0000000 --- a/alertik.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Alertik: a tiny 'syslog' server & notification tool for Mikrotik routers. - * This is free and unencumbered software released into the public domain. - */ - -#ifndef ALERTIK_H -#define ALERTIK_H - - #include - - #define MIN(a,b) (((a)<(b))?(a):(b)) - - extern char *get_formatted_time(time_t time, char *time_str); - extern void log_msg(const char *fmt, ...); - -#endif /* ALERTIK_H */ diff --git a/env_events.c b/env_events.c index 7eac461..a9f2801 100644 --- a/env_events.c +++ b/env_events.c @@ -13,7 +13,6 @@ #include "log.h" #include "events.h" #include "env_events.h" -#include "alertik.h" #include "notifiers.h" #include "str.h" diff --git a/events.c b/events.c index 70712e9..ce20e38 100644 --- a/events.c +++ b/events.c @@ -8,8 +8,8 @@ #include #include #include +#include #include "events.h" -#include "alertik.h" #include "notifiers.h" #include "log.h" #include "str.h" @@ -18,6 +18,8 @@ * Static events */ +#define MIN(a,b) (((a)<(b))?(a):(b)) + /* Misc. */ #define MAX_MATCHES 32 static regmatch_t pmatch[MAX_MATCHES]; diff --git a/notifiers.c b/notifiers.c index 85190a9..4562150 100644 --- a/notifiers.c +++ b/notifiers.c @@ -10,7 +10,6 @@ #include "log.h" #include "notifiers.h" -#include "alertik.h" #include "str.h" /* diff --git a/str.c b/str.c index d57313d..0f8c954 100644 --- a/str.c +++ b/str.c @@ -36,7 +36,6 @@ #include #include #include -#include /* ========================================================================= */ /* BUFFER ROUTINES */ diff --git a/syslog.c b/syslog.c index e05d85b..7fcd36b 100644 --- a/syslog.c +++ b/syslog.c @@ -5,6 +5,7 @@ #include #include +#include #include #include #include