stand: Use c99 structure initialization for userboot block device
Use c99 structure init for devsw. Sponsored by: Netflix
This commit is contained in:
parent
1e3d1c86bc
commit
4c460aaf83
@ -63,15 +63,15 @@ static int userdisk_ioctl(struct open_file *f, u_long cmd, void *data);
|
|||||||
static int userdisk_print(int verbose);
|
static int userdisk_print(int verbose);
|
||||||
|
|
||||||
struct devsw userboot_disk = {
|
struct devsw userboot_disk = {
|
||||||
"disk",
|
.dv_name = "disk",
|
||||||
DEVT_DISK,
|
.dv_type = DEVT_DISK,
|
||||||
userdisk_init,
|
.dv_init = userdisk_init,
|
||||||
userdisk_strategy,
|
.dv_strategy = userdisk_strategy,
|
||||||
userdisk_open,
|
.dv_open = userdisk_open,
|
||||||
userdisk_close,
|
.dv_close = userdisk_close,
|
||||||
userdisk_ioctl,
|
.dv_ioctl = userdisk_ioctl,
|
||||||
userdisk_print,
|
.dv_print = userdisk_print,
|
||||||
userdisk_cleanup
|
.dv_cleanup = userdisk_cleanup,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user