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

Re: [libvirt] [PATCH v3 3/3] libvirt/qemu : support attach/detach-interface --persistent with qemu



> +static int qemuDomainFindNetByName(virDomainDefPtr vmdef,
> +                 const unsigned char *mac)
> +{
> +    virDomainNetDefPtr net;
> +    int i;
> +
> +    for (i = 0; i < vmdef->nnets; i++) {
> +        net = vmdef->nets[i];
> +        /* For now, only MAC can be the key */
> +        if (!strcmp((char*)net->mac, (char*)mac))

ack with STREQ and email address fixed.

-- 
Thanks,
Hu Tao


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