From 6142e88ed55884c1988c9f6b73900caa9c8b6354 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 2 May 2017 14:48:21 +0200 Subject: [PATCH] nflog: compiler warning fix --- src/source-nflog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/source-nflog.c b/src/source-nflog.c index 0e399be00e..b2a9199631 100644 --- a/src/source-nflog.c +++ b/src/source-nflog.c @@ -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); -- 2.47.2