From: Victor Julien Date: Tue, 2 May 2017 12:48:21 +0000 (+0200) Subject: nflog: compiler warning fix X-Git-Tag: suricata-4.0.0-beta1~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6142e88ed55884c1988c9f6b73900caa9c8b6354;p=thirdparty%2Fsuricata.git nflog: compiler warning fix --- 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);