1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00

Also use dev2unit() in the pseudo-driver example script.

Because I'm planning on MFC'ing my last change to this file, make sure
we use dev2unit() here as well.
This commit is contained in:
Ed Schouten 2008-09-27 16:52:57 +00:00
parent e7ef3e9494
commit 00b4430eb8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183416

View File

@ -168,7 +168,7 @@ static struct cdevsw ${1}_cdevsw = {
* device specific Misc defines
*/
#define BUFFERSIZE 1024
#define UNIT(dev) minor(dev) /* assume one minor number per unit */
#define UNIT(dev) dev2unit(dev) /* assume one minor number per unit */
/*
* One of these per allocated device