]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
nflog: compiler warning fix
authorVictor Julien <victor@inliniac.net>
Tue, 2 May 2017 12:48:21 +0000 (14:48 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 2 May 2017 12:48:21 +0000 (14:48 +0200)
src/source-nflog.c

index 0e399be00e2a4a0b94bc706fde0e19285822bbfd..b2a9199631f70832f2a06c6c88ad1966cc718ee8 100644 (file)
@@ -209,9 +209,9 @@ static int NFLOGCallback(struct nflog_g_handle *gh, struct nfgenmsg *msg,
  * \retvalTM_ECODE_OK on success
  * \retval TM_ECODE_FAILED on error
  */
-TmEcode ReceiveNFLOGThreadInit(ThreadVars *tv, void *initdata, void **data)
+TmEcode ReceiveNFLOGThreadInit(ThreadVars *tv, const void *initdata, void **data)
 {
-    NflogGroupConfig *nflconfig = initdata;
+    NflogGroupConfig *nflconfig = (NflogGroupConfig *)initdata;
 
     if (initdata == NULL) {
         SCLogError(SC_ERR_INVALID_ARGUMENT, "initdata == NULL");
@@ -526,7 +526,7 @@ TmEcode DecodeNFLOG(ThreadVars *tv, Packet *p, void *data, PacketQueue *pq, Pack
  * \retval TM_ECODE_OK is returned on success
  * \retval TM_ECODE_FAILED is returned on error
  */
-TmEcode DecodeNFLOGThreadInit(ThreadVars *tv, void *initdata, void **data)
+TmEcode DecodeNFLOGThreadInit(ThreadVars *tv, const void *initdata, void **data)
 {
     DecodeThreadVars *dtv = NULL;
     dtv = DecodeThreadVarsAlloc(tv);