From: Daniel P. Berrangé Date: Fri, 25 Feb 2022 14:23:11 +0000 (+0000) Subject: nwfilter: make some gentech driver methods static X-Git-Tag: CVE-2022-0897~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd08bf20958908228f9fcddd784a61b3de63df7c;p=thirdparty%2Flibvirt.git nwfilter: make some gentech driver methods static The virNWFilterTechDriverForName & virNWFilterUpdateInstantiateFilter methods are only used within the same source file, so don't need to be exported. Reviewed-by: Laine Stump Signed-off-by: Daniel P. Berrangé --- diff --git a/src/nwfilter/nwfilter_gentech_driver.c b/src/nwfilter/nwfilter_gentech_driver.c index 20ecd299bf..7bbf1e12fb 100644 --- a/src/nwfilter/nwfilter_gentech_driver.c +++ b/src/nwfilter/nwfilter_gentech_driver.c @@ -99,7 +99,7 @@ void virNWFilterTechDriversShutdown(void) } -virNWFilterTechDriver * +static virNWFilterTechDriver * virNWFilterTechDriverForName(const char *name) { size_t i = 0; @@ -791,7 +791,7 @@ virNWFilterInstantiateFilter(virNWFilterDriverState *driver, } -int +static int virNWFilterUpdateInstantiateFilter(virNWFilterDriverState *driver, virNWFilterBindingDef *binding, bool *skipIface) diff --git a/src/nwfilter/nwfilter_gentech_driver.h b/src/nwfilter/nwfilter_gentech_driver.h index 74f8a4496b..969ab76966 100644 --- a/src/nwfilter/nwfilter_gentech_driver.h +++ b/src/nwfilter/nwfilter_gentech_driver.h @@ -26,8 +26,6 @@ #include "virnwfilterbindingdef.h" #include "nwfilter_tech_driver.h" -virNWFilterTechDriver *virNWFilterTechDriverForName(const char *name); - int virNWFilterTechDriversInit(bool privileged); void virNWFilterTechDriversShutdown(void); @@ -39,9 +37,6 @@ enum instCase { int virNWFilterInstantiateFilter(virNWFilterDriverState *driver, virNWFilterBindingDef *binding); -int virNWFilterUpdateInstantiateFilter(virNWFilterDriverState *driver, - virNWFilterBindingDef *binding, - bool *skipIface); int virNWFilterInstantiateFilterLate(virNWFilterDriverState *driver, virNWFilterBindingDef *binding,