stand: Create DEV_NAMLEN for the length of a device name
Rather than hard coding 8 for the device name length, create a #define for it. Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D35910
This commit is contained in:
parent
863871d369
commit
4932a6e41d
@ -139,8 +139,9 @@ extern struct fs_ops efihttp_fsops;
|
|||||||
/*
|
/*
|
||||||
* Device switch
|
* Device switch
|
||||||
*/
|
*/
|
||||||
|
#define DEV_NAMLEN 8 /* Length of name of device class */
|
||||||
struct devsw {
|
struct devsw {
|
||||||
const char dv_name[8];
|
const char dv_name[DEV_NAMLEN];
|
||||||
int dv_type; /* opaque type constant, arch-dependant */
|
int dv_type; /* opaque type constant, arch-dependant */
|
||||||
#define DEVT_NONE 0
|
#define DEVT_NONE 0
|
||||||
#define DEVT_DISK 1
|
#define DEVT_DISK 1
|
||||||
|
Loading…
Reference in New Issue
Block a user