From 03e4bfeb026a568857617a2e1e135c4b3bbd1505 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Tue, 10 Dec 2019 22:15:14 +0100 Subject: [PATCH] app-layer-expectation: remove unused parameter --- src/app-layer-expectation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app-layer-expectation.c b/src/app-layer-expectation.c index f6d91a3bd3..dec089bafc 100644 --- a/src/app-layer-expectation.c +++ b/src/app-layer-expectation.c @@ -144,7 +144,7 @@ static inline int GetFlowAddresses(Flow *f, Address *ip_src, Address *ip_dst) return 0; } -static Expectation *AppLayerExpectationLookup(Flow *f, int direction, IPPair **ipp) +static Expectation *AppLayerExpectationLookup(Flow *f, IPPair **ipp) { Address ip_src, ip_dst; if (GetFlowAddresses(f, &ip_src, &ip_dst) == -1) @@ -282,7 +282,7 @@ AppProto AppLayerExpectationHandle(Flow *f, int direction) } /* Call will take reference of the ip pair in 'ipp' */ - Expectation *exp = AppLayerExpectationLookup(f, direction, &ipp); + Expectation *exp = AppLayerExpectationLookup(f, &ipp); if (exp == NULL) goto out;