mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tests: bhyve: use bitwise shift when defining flags
Although I'm sure we all know the powers of two by heart now, this is the prevalent style for flag defition. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
3fcf498174
commit
709ef46b2d
@ -17,9 +17,9 @@
|
||||
static bhyveConn driver;
|
||||
|
||||
typedef enum {
|
||||
FLAG_EXPECT_FAILURE = 1,
|
||||
FLAG_EXPECT_PARSE_ERROR = 2,
|
||||
FLAG_EXPECT_WARNING = 4,
|
||||
FLAG_EXPECT_FAILURE = 1 << 0,
|
||||
FLAG_EXPECT_PARSE_ERROR = 1 << 1,
|
||||
FLAG_EXPECT_WARNING = 1 << 2,
|
||||
} virBhyveArgv2XMLTestFlags;
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user