From 9aabf94c9ff3ea0c364ebb7b0ab3ff6498058ce3 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 6 Oct 2011 19:24:45 +0200 Subject: [PATCH] Suppress useless parameter in function ConfigParser is called in the parent function and it is thus not necessary to send it to the per device function. --- src/util-runmodes.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/util-runmodes.c b/src/util-runmodes.c index 5eff1c2f71..3bd7fbf713 100644 --- a/src/util-runmodes.c +++ b/src/util-runmodes.c @@ -585,7 +585,6 @@ int RunModeSetLiveCaptureAutoFp(DetectEngineCtx *de_ctx, } static int RunModeSetLiveCaptureWorkersForDevice(DetectEngineCtx *de_ctx, - ConfigIfaceParserFunc ConfigParser, ConfigIfaceThreadsCountFunc ModThreadsCount, char *recv_mod_name, char *decode_mod_name, char *thread_name, @@ -681,7 +680,6 @@ int RunModeSetLiveCaptureWorkers(DetectEngineCtx *de_ctx, for (ldev = 0; ldev < nlive; ldev++) { char *live_dev_c = NULL; - aconf = ConfigParser(live_dev_c); if (live_dev != NULL) { aconf = ConfigParser(live_dev); live_dev_c = SCStrdup(live_dev); @@ -694,7 +692,6 @@ int RunModeSetLiveCaptureWorkers(DetectEngineCtx *de_ctx, aconf = ConfigParser(live_dev_c); } RunModeSetLiveCaptureWorkersForDevice(de_ctx, - ConfigParser, ModThreadsCount, recv_mod_name, decode_mod_name, @@ -732,7 +729,6 @@ int RunModeSetLiveCaptureSingle(DetectEngineCtx *de_ctx, } return RunModeSetLiveCaptureWorkersForDevice(de_ctx, - ConfigParser, ModThreadsCount, recv_mod_name, decode_mod_name,