Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 May 2010 14:55:13 -0400 (EDT)
From:      Benjamin Kaduk <kaduk@MIT.EDU>
To:        Dmitry Krivenok <krivenok.dmitry@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Moving from FreeBSD7 to FreeBSD8 (cdev, minor, dev2unit)
Message-ID:  <alpine.GSO.1.10.1005071454440.29136@multics.mit.edu>
In-Reply-To: <m2ida48cf211005070159ma464fef5h5baf0107ee6e4e88@mail.gmail.com>
References:  <m2ida48cf211005070159ma464fef5h5baf0107ee6e4e88@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 7 May 2010, Dmitry Krivenok wrote:

>
> It looks like dev2unit is exactly what I need to fix compilation issue.
> I changed the code of all modules as follows:
>
> - int dev_num = minor(dev);
> + int dev_num = minor(dev2unit(dev));
>
> and now it compiles and works well.
>
> Is this the proper way of solving the problem?

It should be -- see the commit message for svn revision 187830 on 
2009-01-28 17:57:16Z by ed

-Ben Kaduk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.GSO.1.10.1005071454440.29136>