From 730a86e6b84e65348bff076b8a6358baceede3f6 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 30 Sep 2011 16:25:26 +0200 Subject: [PATCH] pfring: fix warning When PF_RING is disable this function is unused and thus trigger a warning at compilation. --- src/runmode-pfring.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runmode-pfring.c b/src/runmode-pfring.c index 8204ccc4d4..27e9e3efaf 100644 --- a/src/runmode-pfring.c +++ b/src/runmode-pfring.c @@ -310,6 +310,7 @@ int PfringConfLevel() return PFRING_CONF_V2; } +#ifdef HAVE_PFRING static int GetDevAndParser(char **live_dev, ConfigIfaceParserFunc *parser) { ConfGet("pfring.live-interface", live_dev); @@ -331,6 +332,7 @@ static int GetDevAndParser(char **live_dev, ConfigIfaceParserFunc *parser) return 0; } +#endif /** * \brief RunModeIdsPfringAuto set up the following thread packet handlers: