Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2010 16:56:03 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Gleb Smirnoff <glebius@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r204602 - head/share/man/man9
Message-ID:  <201003021656.03725.jhb@freebsd.org>
In-Reply-To: <201003022110.o22LAiOo044372@svn.freebsd.org>
References:  <201003022110.o22LAiOo044372@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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