svn commit: r204602 - head/share/man/man9

John Baldwin jhb at freebsd.org
Tue Mar 2 21:59:15 UTC 2010


On Tuesday 02 March 2010 4:10:44 pm Gleb Smirnoff wrote:
> Author: glebius
> Date: Tue Mar  2 21:10:44 2010
> New Revision: 204602
> URL: http://svn.freebsd.org/changeset/base/204602
> 
> Log:
>   - Add missing includes to make example "compilable".
>   - Use C99 initializer just in case if driver_t may change in future.

Actually, this is not done anywhere else in the tree for driver_t (though it 
is common for cdevsw).  If you'd rather not use the old style, then use 
DEFINE_CLASS_0 instead.  That is:

DEFINE_CLASS_0(foo, foo_driver, foo_methods, sizeof(struct foo_softc));

-- 
John Baldwin


More information about the svn-src-head mailing list