diff options
author | gene <gene@cvs.openbsd.org> | 1997-03-11 21:03:05 +0000 |
---|---|---|
committer | gene <gene@cvs.openbsd.org> | 1997-03-11 21:03:05 +0000 |
commit | f1d001e6fcd8bdb74d98ca1547b99958b9d90102 (patch) | |
tree | d301498f711dd304730bc8401565a7dc7a9d3690 /sys/arch/mac68k/dev/z8530tty.c | |
parent | 07bc8fbe58820b758121b8f14b39b281dbaf6c40 (diff) |
Second parameter of *match functions should be void (thank you ISA bus) and
*stop functions return int's under OpenBSD. This cleans up a
bunch of compile-time warnings for the mac68k.
Diffstat (limited to 'sys/arch/mac68k/dev/z8530tty.c')
-rw-r--r-- | sys/arch/mac68k/dev/z8530tty.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/mac68k/dev/z8530tty.c b/sys/arch/mac68k/dev/z8530tty.c index 99e293fcf93..cb35ad8adbc 100644 --- a/sys/arch/mac68k/dev/z8530tty.c +++ b/sys/arch/mac68k/dev/z8530tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: z8530tty.c,v 1.6 1997/01/24 01:35:38 briggs Exp $ */ +/* $OpenBSD: z8530tty.c,v 1.7 1997/03/11 21:03:02 gene Exp $ */ /* $NetBSD: z8530tty.c,v 1.10 1996/12/18 05:17:44 scottr Exp $ */ /* @@ -87,7 +87,7 @@ struct zstty_stats z8530tty_stats; /* Definition of the driver for autoconfig. */ -static int zstty_match(struct device *, struct cfdata *, void *); +static int zstty_match(struct device *, void *, void *); static void zstty_attach(struct device *, struct device *, void *); struct cfattach zstty_ca = { @@ -117,12 +117,13 @@ static int zsgetbaud __P((register struct zs_chanstate *, * zstty_match: how is this zs channel configured? */ int -zstty_match(parent, cf, aux) +zstty_match(parent, vcf, aux) struct device *parent; - struct cfdata *cf; + void *vcf; void *aux; { struct zsc_attach_args *args = aux; + struct cfdata *cf = vcf; /* Exact match is better than wildcard. */ if (cf->cf_loc[0] == args->channel) @@ -669,6 +670,7 @@ zsstop(tp, flag) tp->t_state |= TS_FLUSH; } splx(s); + return(0); } #ifndef ZS_TOLERANCE |