NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: misc/43348: driver(9) man page has strange examples
> > const struct cdevsw foo_cdevsw {
> > int (*d_open)(dev_t, int, int, struct lwp *);
> > int (*d_close)(dev_t, int, int, struct lwp *);
> > ...
> > };
> >
> > They should be like
> >
> > const struct cdevsw foo_cdevsw {
> > fooopen, fooclose, .....
> > };
actually, i'd much rather the example read something like:
const struct cdevsw foo_cdevsw {
.d_open = fooopen,
.d_close = fooclose,
....
};
and promote the use of named initialisers.
.mrg.
Home |
Main Index |
Thread Index |
Old Index