app-layer-expectation: remove unused parameter

pull/4778/head
Eric Leblond 5 years ago committed by Victor Julien
parent 0ae6b0b250
commit 03e4bfeb02

@ -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;

Loading…
Cancel
Save