[libvirt PATCH 5/5] nwfilter: make some gentech driver methods static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The virNWFilterTechDriverForName & virNWFilterUpdateInstantiateFilter
methods are only used within the same source file, so don't need to
be exported.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 src/nwfilter/nwfilter_gentech_driver.c | 4 ++--
 src/nwfilter/nwfilter_gentech_driver.h | 5 -----
 2 files changed, 2 insertions(+), 7 deletions(-)

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,
-- 
2.35.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux