[Oisf-devel] [PATCH 1/2] Suppress useless parameter in function
Eric Leblond
eric at regit.org
Thu Oct 6 17:24:45 UTC 2011
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 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/util-runmodes.c b/src/util-runmodes.c
index 5eff1c2..3bd7fbf 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,
--
1.7.6.3
More information about the Oisf-devel
mailing list