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:
Warner Losh 2022-07-27 08:45:59 -06:00
parent 863871d369
commit 4932a6e41d

View File

@ -139,8 +139,9 @@ extern struct fs_ops efihttp_fsops;
/*
* Device switch
*/
#define DEV_NAMLEN 8 /* Length of name of device class */
struct devsw {
const char dv_name[8];
const char dv_name[DEV_NAMLEN];
int dv_type; /* opaque type constant, arch-dependant */
#define DEVT_NONE 0
#define DEVT_DISK 1