Re: [PATCH v2 04/20] virlog: Introduce virLogFindOutput

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

 




[...]

doh!  Like a good fluorescent lightbulb - it just dawned on me...


> +
> +    for (i = 0; i < noutputs; i++) {
> +        if (dest == outputs[i]->dest &&
> +            (dest != VIR_LOG_TO_FILE || STREQ(outputs[i]->name, name)))

STREQ_NULLABLE would I believe remove the need for the VIR_LOG_TO_FILE
check...

John
> +                return i;
> +    }
> +
> +    return -1;
> +}
[...]

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]