From: Eric Leblond Date: Tue, 10 Dec 2019 21:15:14 +0000 (+0100) Subject: app-layer-expectation: remove unused parameter X-Git-Tag: suricata-6.0.0-beta1~572 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e4bfeb026a568857617a2e1e135c4b3bbd1505;p=thirdparty%2Fsuricata.git app-layer-expectation: remove unused parameter --- 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;