From: Victor Julien Date: Mon, 11 Nov 2019 07:07:35 +0000 (+0100) Subject: af-packet: prototypes cleanup X-Git-Tag: suricata-6.0.0-beta1~807 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15e3bdb7b879547e90b54c433b9aa06575b3da6f;p=thirdparty%2Fsuricata.git af-packet: prototypes cleanup Remove unused prototype. Declare other prototypes static. --- diff --git a/src/source-af-packet.c b/src/source-af-packet.c index b809ce3047..ba2a251604 100644 --- a/src/source-af-packet.c +++ b/src/source-af-packet.c @@ -303,17 +303,16 @@ typedef struct AFPThreadVars_ } AFPThreadVars; -TmEcode ReceiveAFP(ThreadVars *, Packet *, void *, PacketQueue *, PacketQueue *); -TmEcode ReceiveAFPThreadInit(ThreadVars *, const void *, void **); -void ReceiveAFPThreadExitStats(ThreadVars *, void *); -TmEcode ReceiveAFPThreadDeinit(ThreadVars *, void *); -TmEcode ReceiveAFPLoop(ThreadVars *tv, void *data, void *slot); +static TmEcode ReceiveAFPThreadInit(ThreadVars *, const void *, void **); +static void ReceiveAFPThreadExitStats(ThreadVars *, void *); +static TmEcode ReceiveAFPThreadDeinit(ThreadVars *, void *); +static TmEcode ReceiveAFPLoop(ThreadVars *tv, void *data, void *slot); -TmEcode DecodeAFPThreadInit(ThreadVars *, const void *, void **); -TmEcode DecodeAFPThreadDeinit(ThreadVars *tv, void *data); -TmEcode DecodeAFP(ThreadVars *, Packet *, void *, PacketQueue *); +static TmEcode DecodeAFPThreadInit(ThreadVars *, const void *, void **); +static TmEcode DecodeAFPThreadDeinit(ThreadVars *tv, void *data); +static TmEcode DecodeAFP(ThreadVars *, Packet *, void *, PacketQueue *); -TmEcode AFPSetBPFFilter(AFPThreadVars *ptv); +static TmEcode AFPSetBPFFilter(AFPThreadVars *ptv); static int AFPGetIfnumByDev(int fd, const char *ifname, int verbose); static int AFPGetDevFlags(int fd, const char *ifname); static int AFPDerefSocket(AFPPeer* peer);