vde: Properly initialize a variable and fix bit width

This commit is contained in:
cold-brewed
2023-05-09 13:11:00 -04:00
parent 13974b216b
commit 0ab0caf5b1
2 changed files with 4 additions and 4 deletions

View File

@@ -150,9 +150,9 @@ typedef struct {
} netdev_t;
typedef struct {
int has_slirp: 1;
int has_pcap: 1;
int has_vde: 1;
int has_slirp;
int has_pcap;
int has_vde;
} network_devmap_t;

View File

@@ -123,7 +123,7 @@ netcard_conf_t net_cards_conf[NET_CARD_MAX];
uint16_t net_card_current = 0;
/* Global variables. */
network_devmap_t network_devmap;
network_devmap_t network_devmap = {0};
int network_ndev;
netdev_t network_devs[NET_HOST_INTF_MAX];