diff options
author | dd <dd@FreeBSD.org> | 2002-10-01 23:35:33 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2002-10-01 23:35:33 +0000 |
commit | 4f9b793ef79a2dfb2566cbec5b9de026e649afe1 (patch) | |
tree | 7d923522bd43bb8d3c8be5d24b1b687bade4023a /share/man/man9/driver.9 | |
parent | cb1615844bc3a16caed0aae31338c356226d2074 (diff) | |
download | FreeBSD-src-4f9b793ef79a2dfb2566cbec5b9de026e649afe1.zip FreeBSD-src-4f9b793ef79a2dfb2566cbec5b9de026e649afe1.tar.gz |
Correct minor errors in the code examples.
PR: 41993
Submitted by: David Lay <dsl@foozle.org>
Diffstat (limited to 'share/man/man9/driver.9')
-rw-r--r-- | share/man/man9/driver.9 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/share/man/man9/driver.9 b/share/man/man9/driver.9 index 03c9d77..fa64a1a 100644 --- a/share/man/man9/driver.9 +++ b/share/man/man9/driver.9 @@ -45,7 +45,7 @@ static int foo_detach(device_t); 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 struct device_method foo_methods[] = { static driver_t foo_driver { "foo", foo_methods, - DRIVER_TYPE_MISC, - sizeof(struct foo_softc), + sizeof(struct foo_softc) }; static devclass_t foo_devclass; |