mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 19:02:25 +00:00
node_device: avoid implicit int
'unsigned a' and 'unsigned int a' are synonyms, but we generally always spell out the 'int' in that case. Fixing this will avoid a false positive in the next syntax-check commit. * src/conf/node_device_conf.h (pci_config_address) (_virNodeDevCapsDef): Prefer 'unsigned int' over 'unsigned'.
This commit is contained in:
parent
0983905c5a
commit
52a12382b6
@ -83,10 +83,10 @@ enum virNodeDevPCICapFlags {
|
||||
};
|
||||
|
||||
struct pci_config_address {
|
||||
unsigned domain;
|
||||
unsigned bus;
|
||||
unsigned slot;
|
||||
unsigned function;
|
||||
unsigned int domain;
|
||||
unsigned int bus;
|
||||
unsigned int slot;
|
||||
unsigned int function;
|
||||
};
|
||||
|
||||
typedef struct _virNodeDevCapsDef virNodeDevCapsDef;
|
||||
@ -109,55 +109,55 @@ struct _virNodeDevCapsDef {
|
||||
} firmware;
|
||||
} system;
|
||||
struct {
|
||||
unsigned domain;
|
||||
unsigned bus;
|
||||
unsigned slot;
|
||||
unsigned function;
|
||||
unsigned product;
|
||||
unsigned vendor;
|
||||
unsigned class;
|
||||
unsigned int domain;
|
||||
unsigned int bus;
|
||||
unsigned int slot;
|
||||
unsigned int function;
|
||||
unsigned int product;
|
||||
unsigned int vendor;
|
||||
unsigned int class;
|
||||
char *product_name;
|
||||
char *vendor_name;
|
||||
struct pci_config_address *physical_function;
|
||||
struct pci_config_address **virtual_functions;
|
||||
unsigned num_virtual_functions;
|
||||
unsigned flags;
|
||||
unsigned int num_virtual_functions;
|
||||
unsigned int flags;
|
||||
} pci_dev;
|
||||
struct {
|
||||
unsigned bus;
|
||||
unsigned device;
|
||||
unsigned product;
|
||||
unsigned vendor;
|
||||
unsigned int bus;
|
||||
unsigned int device;
|
||||
unsigned int product;
|
||||
unsigned int vendor;
|
||||
char *product_name;
|
||||
char *vendor_name;
|
||||
} usb_dev;
|
||||
struct {
|
||||
unsigned number;
|
||||
unsigned _class; /* "class" is reserved in C */
|
||||
unsigned subclass;
|
||||
unsigned protocol;
|
||||
unsigned int number;
|
||||
unsigned int _class; /* "class" is reserved in C */
|
||||
unsigned int subclass;
|
||||
unsigned int protocol;
|
||||
char *description;
|
||||
} usb_if;
|
||||
struct {
|
||||
char *address;
|
||||
unsigned address_len;
|
||||
unsigned int address_len;
|
||||
char *ifname;
|
||||
enum virNodeDevNetCapType subtype; /* LAST -> no subtype */
|
||||
} net;
|
||||
struct {
|
||||
unsigned host;
|
||||
unsigned int host;
|
||||
char *wwnn;
|
||||
char *wwpn;
|
||||
unsigned flags;
|
||||
unsigned int flags;
|
||||
} scsi_host;
|
||||
struct {
|
||||
char *name;
|
||||
} scsi_target;
|
||||
struct {
|
||||
unsigned host;
|
||||
unsigned bus;
|
||||
unsigned target;
|
||||
unsigned lun;
|
||||
unsigned int host;
|
||||
unsigned int bus;
|
||||
unsigned int target;
|
||||
unsigned int lun;
|
||||
char *type;
|
||||
} scsi;
|
||||
struct {
|
||||
@ -172,7 +172,7 @@ struct _virNodeDevCapsDef {
|
||||
char *vendor;
|
||||
char *serial;
|
||||
char *media_label;
|
||||
unsigned flags; /* virNodeDevStorageCapFlags bits */
|
||||
unsigned int flags; /* virNodeDevStorageCapFlags bits */
|
||||
} storage;
|
||||
} data;
|
||||
virNodeDevCapsDefPtr next; /* next capability */
|
||||
|
Loading…
x
Reference in New Issue
Block a user