Removed unused (slightly wrong) stub functions.

Fixed some staticization obfuscations.
This commit is contained in:
bde 1998-12-18 18:07:10 +00:00
parent b8af0c7d8d
commit c26aa71e02

View File

@ -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;