diff options
author | bde <bde@FreeBSD.org> | 1998-12-18 18:07:10 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-12-18 18:07:10 +0000 |
commit | c26aa71e027845a63fb309ceb5380d0050929e7c (patch) | |
tree | 52415920a839d01febc20138553c44d179b32fb7 | |
parent | b8af0c7d8dfc8fbe75c0f0479140cabd9d53d930 (diff) | |
download | FreeBSD-src-c26aa71e027845a63fb309ceb5380d0050929e7c.zip FreeBSD-src-c26aa71e027845a63fb309ceb5380d0050929e7c.tar.gz |
Removed unused (slightly wrong) stub functions.
Fixed some staticization obfuscations.
-rw-r--r-- | sys/i386/isa/wt.c | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/sys/i386/isa/wt.c b/sys/i386/isa/wt.c index 36fb934..c8712ca 100644 --- a/sys/i386/isa/wt.c +++ b/sys/i386/isa/wt.c @@ -20,7 +20,7 @@ * the original CMU copyright notice. * * Version 1.3, Thu Nov 11 12:09:13 MSK 1993 - * $Id: wt.c,v 1.45 1998/07/04 22:30:19 julian Exp $ + * $Id: wt.c,v 1.46 1998/10/22 05:58:41 bde Exp $ * */ @@ -189,8 +189,6 @@ static d_read_t wtread; static d_write_t wtwrite; static d_close_t wtclose; static d_ioctl_t wtioctl; -static d_dump_t wtdump; -static d_psize_t wtsize; static d_strategy_t wtstrategy; #define CDEV_MAJOR 10 @@ -277,24 +275,10 @@ wtattach (struct isa_device *id) struct isa_driver wtdriver = { wtprobe, wtattach, "wt", }; -int -wtdump (dev_t dev) -{ - /* Not implemented */ - return (EINVAL); -} - -int -wtsize (dev_t dev) -{ - /* Not implemented */ - return (-1); -} - /* * Open routine, called on every device open. */ -int +static int wtopen (dev_t dev, int flag, int fmt, struct proc *p) { int u = minor (dev) & T_UNIT; @@ -375,7 +359,7 @@ wtopen (dev_t dev, int flag, int fmt, struct proc *p) /* * Close routine, called on last device close. */ -int +static int wtclose (dev_t dev, int flags, int fmt, struct proc *p) { int u = minor (dev) & T_UNIT; @@ -424,7 +408,7 @@ done: * ioctl (int fd, MTIOCGET, struct mtget *buf) -- get status * ioctl (int fd, MTIOCTOP, struct mtop *buf) -- do BSD-like op */ -int +static int wtioctl (dev_t dev, u_long cmd, caddr_t arg, int flags, struct proc *p) { int u = minor (dev) & T_UNIT; @@ -527,7 +511,7 @@ wtwrite(dev_t dev, struct uio *uio, int ioflag) /* * Strategy routine. */ -void +static void wtstrategy (struct buf *bp) { int u = minor (bp->b_dev) & T_UNIT; |