1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-27 07:22:07 +03:00

virdnsmasq: remove binaryPath argument from dnsmasqCapsNewFromBinary

We always pass DNSMASQ so there is no need for the argument at all.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Pavel Hrdina 2021-04-14 17:57:08 +02:00
parent 84fd53f555
commit a1ea955806
3 changed files with 5 additions and 5 deletions

View File

@ -130,7 +130,7 @@ networkDnsmasqCapsRefresh(virNetworkDriverState *driver)
{
dnsmasqCaps *caps;
if (!(caps = dnsmasqCapsNewFromBinary(DNSMASQ)))
if (!(caps = dnsmasqCapsNewFromBinary()))
return -1;
networkDriverLock(driver);
@ -749,7 +749,7 @@ networkStateInitialize(bool privileged,
goto error;
/* if this fails now, it will be retried later with networkDnsmasqCapsRefresh() */
network_driver->dnsmasqCaps = dnsmasqCapsNewFromBinary(DNSMASQ);
network_driver->dnsmasqCaps = dnsmasqCapsNewFromBinary();
if (!(network_driver->networks = virNetworkObjListNew()))
goto error;

View File

@ -759,9 +759,9 @@ dnsmasqCapsNewFromBuffer(const char *buf)
}
dnsmasqCaps *
dnsmasqCapsNewFromBinary(const char *binaryPath)
dnsmasqCapsNewFromBinary(void)
{
dnsmasqCaps *caps = dnsmasqCapsNewEmpty(binaryPath);
dnsmasqCaps *caps = dnsmasqCapsNewEmpty(DNSMASQ);
if (!caps)
return NULL;

View File

@ -100,7 +100,7 @@ int dnsmasqDelete(const dnsmasqContext *ctx);
int dnsmasqReload(pid_t pid);
dnsmasqCaps *dnsmasqCapsNewFromBuffer(const char *buf);
dnsmasqCaps *dnsmasqCapsNewFromBinary(const char *binaryPath);
dnsmasqCaps *dnsmasqCapsNewFromBinary(void);
bool dnsmasqCapsGet(dnsmasqCaps *caps, dnsmasqCapsFlags flag);
const char *dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps);
unsigned long dnsmasqCapsGetVersion(dnsmasqCaps *caps);