]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
source-pcap: remove unused function
authorVictor Julien <victor@inliniac.net>
Mon, 11 Nov 2019 14:44:33 +0000 (15:44 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 7 Feb 2020 14:43:10 +0000 (15:43 +0100)
src/source-pcap.c

index 5daab8644917d488a5ce569bae28f2552d0c4fbe..f49ff0a49c133eb0791c3e67793d84f46eeebafd 100644 (file)
@@ -92,7 +92,6 @@ typedef struct PcapThreadVars_
 
 static TmEcode ReceivePcapThreadInit(ThreadVars *, const void *, void **);
 static void ReceivePcapThreadExitStats(ThreadVars *, void *);
-static TmEcode ReceivePcapThreadDeinit(ThreadVars *, void *);
 static TmEcode ReceivePcapLoop(ThreadVars *tv, void *data, void *slot);
 static TmEcode ReceivePcapBreakLoop(ThreadVars *tv, void *data);
 
@@ -531,19 +530,6 @@ static void ReceivePcapThreadExitStats(ThreadVars *tv, void *data)
     }
 }
 
-/**
- * \brief DeInit function closes pcap_handle at exit.
- * \param tv pointer to ThreadVars
- * \param data pointer that gets cast into PcapThreadVars for ptv
- */
-static TmEcode ReceivePcapThreadDeinit(ThreadVars *tv, void *data)
-{
-    PcapThreadVars *ptv = (PcapThreadVars *)data;
-
-    pcap_close(ptv->pcap_handle);
-    SCReturnInt(TM_ECODE_OK);
-}
-
 /**
  * \brief This function passes off to link type decoders.
  *