virdnsmasq: remove binaryPath argument from dnsmasqCapsNewFromBuffer

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:46:47 +02:00
parent 6df8455aac
commit 84fd53f555
3 changed files with 6 additions and 7 deletions

View File

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

View File

@ -99,8 +99,7 @@ int dnsmasqSave(const dnsmasqContext *ctx);
int dnsmasqDelete(const dnsmasqContext *ctx);
int dnsmasqReload(pid_t pid);
dnsmasqCaps *dnsmasqCapsNewFromBuffer(const char *buf,
const char *binaryPath);
dnsmasqCaps *dnsmasqCapsNewFromBuffer(const char *buf);
dnsmasqCaps *dnsmasqCapsNewFromBinary(const char *binaryPath);
bool dnsmasqCapsGet(dnsmasqCaps *caps, dnsmasqCapsFlags flag);
const char *dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps);

View File

@ -123,11 +123,11 @@ mymain(void)
{
int ret = 0;
dnsmasqCaps *restricted
= dnsmasqCapsNewFromBuffer("Dnsmasq version 2.48", DNSMASQ);
= dnsmasqCapsNewFromBuffer("Dnsmasq version 2.48");
dnsmasqCaps *full
= dnsmasqCapsNewFromBuffer("Dnsmasq version 2.63\n--bind-dynamic", DNSMASQ);
= dnsmasqCapsNewFromBuffer("Dnsmasq version 2.63\n--bind-dynamic");
dnsmasqCaps *dhcpv6
= dnsmasqCapsNewFromBuffer("Dnsmasq version 2.64\n--bind-dynamic", DNSMASQ);
= dnsmasqCapsNewFromBuffer("Dnsmasq version 2.64\n--bind-dynamic");
#define DO_TEST(xname, xcaps) \
do { \