stand: Use c99 structure initialization for kboot's hostdisk device
Use c99 structure init for devsw. Sponsored by: Netflix
This commit is contained in:
parent
143452f760
commit
fc5d0d51aa
@ -40,14 +40,14 @@ static int hostdisk_ioctl(struct open_file *f, u_long cmd, void *data);
|
||||
static int hostdisk_print(int verbose);
|
||||
|
||||
struct devsw hostdisk = {
|
||||
"/dev",
|
||||
DEVT_DISK,
|
||||
hostdisk_init,
|
||||
hostdisk_strategy,
|
||||
hostdisk_open,
|
||||
hostdisk_close,
|
||||
hostdisk_ioctl,
|
||||
hostdisk_print,
|
||||
.dv_name = "/dev",
|
||||
.dv_type = DEVT_DISK,
|
||||
.dv_init = hostdisk_init,
|
||||
.dv_strategy = hostdisk_strategy,
|
||||
.dv_open = hostdisk_open,
|
||||
.dv_close = hostdisk_close,
|
||||
.dv_ioctl = hostdisk_ioctl,
|
||||
.dv_print = hostdisk_print,
|
||||
};
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user