Re: [PATCHv8.1 5/7] bhyve: Probe grub-bhyve for --cons-dev capability

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

 



On Wed, Nov 12, 2014 at 4:07 AM, Michal Privoznik <mprivozn@xxxxxxxxxx> wrote:
> On 11.11.2014 16:35, Conrad Meyer wrote:
>> +/* These are bit flags: */
>> +enum {
>> +    BHYVE_GRUB_CAP_CONSDEV = 0x00000001,
>> +};
>
>
> I think this should be rather typedef enum {...} virBhyveGrubCapsFlags;

Ok.

>> +int virBhyveProbeGrubCaps(unsigned *caps);
>
>
> And hence s/unsigned/virBhyveGrubCapsFlags/

This seems like a confusing use of an enum to me — with 2+ flags, you
can return values that are no longer present in the enum as enum type.

>
>> +
>>   #endif
>>
>
> I'm fixing this and pushing. ACK.

Thanks,
Conrad

--
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]