diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-05-20 12:54:12 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-05-20 12:54:12 +0000 |
commit | c6d69ab67314956992e50a60a8dbdfc998e5db92 (patch) | |
tree | e4210e6f44d374bf0d28ad109c847f8be35be2fe /src | |
parent | 0b2ee057338deb7566c3646ff1339d96d12dc48e (diff) | |
download | ipacct-c6d69ab67314956992e50a60a8dbdfc998e5db92.tar.gz ipacct-c6d69ab67314956992e50a60a8dbdfc998e5db92.tar.bz2 |
Add missing includes
Diffstat (limited to 'src')
-rw-r--r-- | src/account.c | 6 | ||||
-rw-r--r-- | src/report.c | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/account.c b/src/account.c index 1440f58..8864ad3 100644 --- a/src/account.c +++ b/src/account.c @@ -15,7 +15,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: account.c,v 1.5 2003/04/08 18:22:34 gray Exp $ */ +/* $Id: account.c,v 1.6 2005/05/20 12:54:12 gray Exp $ */ #if defined(HAVE_CONFIG_H) # include <config.h> #endif @@ -24,6 +24,8 @@ #include <limits.h> #include <ipacct.h> #include <syslog.h> +#include <time.h> +#include <string.h> list_t targets; @@ -150,7 +152,7 @@ _account_check_stream(streamp, ipp) ipd->addr[DIR_DST] = ipd->ip->ip_dst.s_addr; if (lookup_address(&stream->direct, ipd) && !lookup_address(&stream->except, ipd)) { - /*FIXME: bytes shoud be ctr[2] */ + /*FIXME: bytes should be ctr[2] */ if (stream->dir == DIR_SRC) ipd->stat->bytes.out += ipd->length; else diff --git a/src/report.c b/src/report.c index 6506aeb..6cafe44 100644 --- a/src/report.c +++ b/src/report.c @@ -27,6 +27,7 @@ #include <netinet/in.h> #include <errno.h> #include <syslog.h> +#include <time.h> #include "ipacct.h" #include "report.h" |