stand: Use c99 structure initialization for network device

Use c99 structure init for devsw.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-07-24 15:51:32 -06:00
parent bf855d1bf2
commit c4f4a6c983

View File

@ -86,15 +86,15 @@ static int net_print(int);
static int net_getparams(int sock); static int net_getparams(int sock);
struct devsw netdev = { struct devsw netdev = {
"net", .dv_name = "net",
DEVT_NET, .dv_type = DEVT_NET,
net_init, .dv_init = net_init,
net_strategy, .dv_strategy = net_strategy,
net_open, .dv_open = net_open,
net_close, .dv_close = net_close,
noioctl, .dv_ioctl = noioctl,
net_print, .dv_print = net_print,
net_cleanup .dv_cleanup = net_cleanup,
}; };
static struct uri_scheme { static struct uri_scheme {