[PATCH v2 09/15] network: remove conditional declarations

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

 



The networkDnsmasqConfContents() method is only used by the test suite
and that's only built with WITH_NETWORK is set. So there is no longer
any reason to conditionalize the declaration of this method.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 src/network/bridge_driver.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/network/bridge_driver.h b/src/network/bridge_driver.h
index 2cf886a7e6..b70881a690 100644
--- a/src/network/bridge_driver.h
+++ b/src/network/bridge_driver.h
@@ -34,8 +34,6 @@
 int
 networkRegister(void);
 
-# if WITH_NETWORK
-
 int
 networkDnsmasqConfContents(virNetworkObjPtr obj,
                            const char *pidfile,
@@ -43,11 +41,4 @@ networkDnsmasqConfContents(virNetworkObjPtr obj,
                            dnsmasqContext *dctx,
                            dnsmasqCapsPtr caps);
 
-# else
-/* Define no-op replacements that don't drag in any link dependencies.  */
-#  define networkDnsmasqConfContents(network, pidfile, configstr, \
-                    dctx, caps) 0
-
-# endif
-
 #endif /* __VIR_NETWORK__DRIVER_H */
-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[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