mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
6df8455aac
commit
84fd53f555
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 { \
|
||||
|
|
Loading…
Reference in New Issue