mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
stand: Use c99 structure initialization for network device
Use c99 structure init for devsw. Sponsored by: Netflix
This commit is contained in:
parent
bf855d1bf2
commit
c4f4a6c983
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user