Date: Sun, 25 Aug 2002 16:02:41 +1000 (EST) From: David Lay <dsl@foozle.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/41993: [PATCH] corrections to driver(9) Message-ID: <20020825060241.D3E582F10@disco.foozle.org>
next in thread | raw e-mail | index | archive | help
>Number: 41993 >Category: docs >Synopsis: [PATCH] corrections to driver(9) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 24 23:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: David Lay >Release: FreeBSD 4.6.2-RELEASE i386 >Organization: none >Environment: System: FreeBSD disco.foozle.org 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #7: Sat Aug 17 19:50:39 EST 2002 root@disco.foozle.org:/usr/obj/usr/src/sys/DISCO i386 >Description: Supplied patch corrects a couple of minor errors in the code examples in driver(9). Patch should apply cleanly to -CURRENT and -STABLE. >How-To-Repeat: man 9 driver >Fix: --- /usr/src/share/man/man9/driver.9.orig Sun Aug 25 15:52:07 2002 +++ /usr/src/share/man/man9/driver.9 Sun Aug 25 15:52:46 2002 @@ -45,7 +45,7 @@ static int foo_frob(device_t, int, int); static int foo_twiddle(device_t, char *); -static struct device_method foo_methods[] = { +static struct device_method_t foo_methods[] = { /* Methods from the device interface */ DEVMETHOD(device_probe, foo_probe), DEVMETHOD(device_attach, foo_attach), @@ -62,8 +62,7 @@ static driver_t foo_driver { "foo", foo_methods, - DRIVER_TYPE_MISC, - sizeof(struct foo_softc), + sizeof(struct foo_softc) }; static devclass_t foo_devclass; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020825060241.D3E582F10>