From 073bc8baa37c3e4eb98c05e3ee0882e603dccb65 Mon Sep 17 00:00:00 2001 From: wangyu Date: Wed, 19 Jul 2017 19:33:25 +0800 Subject: [PATCH] trival --- main.cpp | 2 +- makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 614369b..0934e0c 100755 --- a/main.cpp +++ b/main.cpp @@ -379,7 +379,7 @@ void init_filter(int port) //printf("<%d>\n",bpf.len); int dummy; - int ret=setsockopt(raw_recv_fd, SOL_SOCKET, SO_DETACH_FILTER, &dummy, sizeof(int)); + int ret=setsockopt(raw_recv_fd, SOL_SOCKET, SO_DETACH_FILTER, &dummy, sizeof(dummy)); if (ret != 0) { printf("error remove fiter\n"); diff --git a/makefile b/makefile index d61aa6d..8753679 100755 --- a/makefile +++ b/makefile @@ -3,5 +3,5 @@ all: killall raw||true sleep 1 g++ main.cpp -o raw -static -lrt -ggdb -I. aes.c md5.c encrypt.cpp -O3 -# ${ccmips} main.cpp -o rawmips -static -lgcc_eh -lrt + ${ccmips} main.cpp -o rawmips -static -lrt -ggdb -I. aes.c md5.c encrypt.cpp -O3