From bd2e6108f38a760651de85b4f9c8bd022b934ac1 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 22 Jan 2011 17:31:47 +0100 Subject: [PATCH 1/2] pknock: use build flags in pknock Makefile --- extensions/pknock/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/pknock/Makefile.am b/extensions/pknock/Makefile.am index 18342eb..a7273ad 100644 --- a/extensions/pknock/Makefile.am +++ b/extensions/pknock/Makefile.am @@ -1,5 +1,8 @@ # -*- Makefile -*- +AM_CPPFLAGS = ${regular_CPPFLAGS} +AM_CFLAGS = ${regular_CFLAGS} + include ../../Makefile.extra noinst_PROGRAMS = pknlusr From ebb61aa3c930dcc09e43a9bf198c7dea7a9f37a3 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 22 Jan 2011 17:32:28 +0100 Subject: [PATCH 2/2] pknock: resolve warnings about unused variables --- extensions/pknock/pknlusr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extensions/pknock/pknlusr.c b/extensions/pknock/pknlusr.c index c1d0ff2..6153bf6 100644 --- a/extensions/pknock/pknlusr.c +++ b/extensions/pknock/pknlusr.c @@ -13,7 +13,6 @@ #define GROUP 1 static struct sockaddr_nl src_addr, dest_addr; -static struct msghdr msg; static int sock_fd; static unsigned char *buf; @@ -25,9 +24,8 @@ int main(void) socklen_t addrlen; int status; int group = GROUP; - struct cn_msg *cnmsg; - int i, buf_size; + int buf_size; const char *ip; char ipbuf[48];