mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
network: remove conditional declarations
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@redhat.com>
This commit is contained in:
parent
a455d41e3e
commit
456c04865f
@ -34,8 +34,6 @@
|
|||||||
int
|
int
|
||||||
networkRegister(void);
|
networkRegister(void);
|
||||||
|
|
||||||
# if WITH_NETWORK
|
|
||||||
|
|
||||||
int
|
int
|
||||||
networkDnsmasqConfContents(virNetworkObjPtr obj,
|
networkDnsmasqConfContents(virNetworkObjPtr obj,
|
||||||
const char *pidfile,
|
const char *pidfile,
|
||||||
@ -43,11 +41,4 @@ networkDnsmasqConfContents(virNetworkObjPtr obj,
|
|||||||
dnsmasqContext *dctx,
|
dnsmasqContext *dctx,
|
||||||
dnsmasqCapsPtr caps);
|
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 */
|
#endif /* __VIR_NETWORK__DRIVER_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user