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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to