aboutgitcodelistschat:MatrixIRC
path: root/eater
diff options
context:
space:
mode:
Diffstat (limited to 'eater')
-rw-r--r--eater/Makefile5
-rw-r--r--eater/eater.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/eater/Makefile b/eater/Makefile
index 2e08b1f..1f85126 100644
--- a/eater/Makefile
+++ b/eater/Makefile
@@ -8,10 +8,11 @@
# Author: Alice Frosi <afrosi@redhat.com>
COMMON_DIR :=../common
+COOKER_DIR := ../cooker
SRCS := $(COMMON_DIR)/common.c eater.c
-HEADERS := $(COMMON_DIR)/common.h
+HEADERS := $(COMMON_DIR)/common.h $(COOKER_DIR)/filter.h
BIN := $(OUTDIR)/seitan-eater
-CFLAGS += -Wall -Wextra -pedantic -I$(COMMON_DIR)
+CFLAGS += -Wall -Wextra -pedantic -I$(COMMON_DIR) -I$(COOKER_DIR)
eater: $(SRCS) $(HEADERS)
$(CC) $(CFLAGS) -o $(BIN) $(SRCS)
diff --git a/eater/eater.c b/eater/eater.c
index 0236637..2169eb6 100644
--- a/eater/eater.c
+++ b/eater/eater.c
@@ -23,6 +23,8 @@
#include <sys/stat.h>
#include "common.h"
+#include "filter.h"
+
static struct option options[] = {
{ "input", required_argument, NULL, 'i' },
{ 0, 0, 0, 0 },
@@ -85,7 +87,7 @@ static void signal_handler(__attribute__((unused)) int s)
*/
int main(int argc, char **argv)
{
- struct sock_filter filter[1024];
+ struct sock_filter filter[MAX_FILTER];
struct arguments arguments;
struct sigaction act;
int fd, flags;