Fix build: the return type for t_break changed from int to void.
This commit is contained in:
parent
5fd93b771b
commit
213fbd7666
@ -132,7 +132,7 @@ static int sabtty_detach(device_t dev);
|
||||
|
||||
static int sabtty_intr(struct sabtty_softc *sc);
|
||||
static void sabtty_softintr(struct sabtty_softc *sc);
|
||||
static int sabttybreak(struct tty *tp, int brk);
|
||||
static void sabttybreak(struct tty *tp, int brk);
|
||||
static int sabttymodem(struct tty *tp, int biton, int bitoff);
|
||||
static int sabtty_param(struct sabtty_softc *sc, struct tty *tp,
|
||||
struct termios *t);
|
||||
@ -734,7 +734,7 @@ sabttyclose(struct cdev *dev, int flags, int mode, struct thread *td)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
sabttybreak(struct tty *tp, int brk)
|
||||
{
|
||||
struct sabtty_softc *sc;
|
||||
@ -746,7 +746,6 @@ sabttybreak(struct tty *tp, int brk)
|
||||
else
|
||||
SAB_WRITE(sc, SAB_DAFO,
|
||||
SAB_READ(sc, SAB_DAFO) & ~SAB_DAFO_XBRK);
|
||||
return (0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -145,7 +145,7 @@ static d_close_t zsttyclose;
|
||||
static void zsttystart(struct tty *tp);
|
||||
static void zsttystop(struct tty *tp, int rw);
|
||||
static int zsttyparam(struct tty *tp, struct termios *t);
|
||||
static int zsttybreak(struct tty *tp, int brk);
|
||||
static void zsttybreak(struct tty *tp, int brk);
|
||||
static int zsttymodem(struct tty *tp, int biton, int bitoff);
|
||||
|
||||
static struct cdevsw zstty_cdevsw = {
|
||||
@ -608,7 +608,7 @@ zsttyparam(struct tty *tp, struct termios *t)
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
static void
|
||||
zsttybreak(struct tty *tp, int brk)
|
||||
{
|
||||
struct zstty_softc *sc;
|
||||
@ -619,7 +619,6 @@ zsttybreak(struct tty *tp, int brk)
|
||||
ZS_WRITE_REG(sc, 5, ZS_READ_REG(sc, 5) | ZSWR5_BREAK);
|
||||
else
|
||||
ZS_WRITE_REG(sc, 5, ZS_READ_REG(sc, 5) & ~ZSWR5_BREAK);
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user