From owner-svn-src-stable-8@FreeBSD.ORG Fri Nov 25 16:54:16 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0A94106566B; Fri, 25 Nov 2011 16:54:16 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AFAB88FC0A; Fri, 25 Nov 2011 16:54:16 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pAPGsGUI051596; Fri, 25 Nov 2011 16:54:16 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pAPGsGWq051594; Fri, 25 Nov 2011 16:54:16 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201111251654.pAPGsGWq051594@svn.freebsd.org> From: Marius Strobl Date: Fri, 25 Nov 2011 16:54:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227974 - stable/8/share/man/man9 X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2011 16:54:16 -0000 Author: marius Date: Fri Nov 25 16:54:16 2011 New Revision: 227974 URL: http://svn.freebsd.org/changeset/base/227974 Log: MFC: r204602, r204650 - Add missing includes to make example "compilable". - Use NULL for pointer arguments instead of 0. Modified: stable/8/share/man/man9/driver.9 Directory Properties: stable/8/share/man/man9/ (props changed) Modified: stable/8/share/man/man9/driver.9 ============================================================================== --- stable/8/share/man/man9/driver.9 Fri Nov 25 15:48:30 2011 (r227973) +++ stable/8/share/man/man9/driver.9 Fri Nov 25 16:54:16 2011 (r227974) @@ -28,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 16, 1998 +.Dd March 3, 2010 .Dt DRIVER 9 .Os .Sh NAME @@ -37,7 +37,9 @@ .Sh SYNOPSIS .Bd -literal #include +#include #include +#include static int foo_probe(device_t); static int foo_attach(device_t); @@ -59,7 +61,7 @@ static device_method_t foo_methods[] = { { 0, 0 } }; -static driver_t foo_driver { +static driver_t foo_driver = { "foo", foo_methods, sizeof(struct foo_softc) @@ -67,7 +69,7 @@ static driver_t foo_driver { static devclass_t foo_devclass; -DRIVER_MODULE(foo, bogo, foo_driver, foo_devclass, 0, 0); +DRIVER_MODULE(foo, bogo, foo_driver, foo_devclass, NULL, NULL); .Ed .Sh DESCRIPTION Each driver in the kernel is described by a