Fix various trivial warnings from LINT

This commit is contained in:
Poul-Henning Kamp 1999-08-28 19:44:07 +00:00
parent a87b535090
commit 94db13fe98
7 changed files with 7 additions and 8 deletions

View File

@ -72,6 +72,7 @@ static void ida_alloc_qcb(struct ida_softc *ida);
static void ida_construct_qcb(struct ida_softc *ida);
static void ida_start(struct ida_softc *ida);
static void ida_done(struct ida_softc *ida, struct ida_qcb *qcb);
static void ida_wait(struct ida_softc *ida, struct ida_qcb *qcb, int delay);
void
ida_free(struct ida_softc *ida)
@ -416,6 +417,7 @@ ida_start(struct ida_softc *ida)
}
}
static
void
ida_wait(struct ida_softc *ida, struct ida_qcb *qcb, int delay)
{

View File

@ -742,7 +742,7 @@ cd9660_vget_internal(mp, ino, vpp, relocated, isodir)
struct iso_mnt *imp;
struct iso_node *ip;
struct buf *bp;
struct vnode *vp, *nvp;
struct vnode *vp;
dev_t dev;
int error;

View File

@ -978,7 +978,6 @@ void cxtimeout (void *a)
#if defined(__FreeBSD__) && (__FreeBSD__ > 1 )
static int cx_devsw_installed;
static void cx_drvinit(void *unused)
{

View File

@ -1137,7 +1137,7 @@ STATIC int stlistop(struct tty *tp, int rw)
STATIC struct tty *stlidevtotty(dev_t dev)
{
#if DEBUG
printf("stlidevtotty(dev=%x)\n", dev);
printf("stlidevtotty(dev=%s)\n", devtoname(dev));
#endif
return((struct tty *) stli_dev2port(dev));
}

View File

@ -557,8 +557,6 @@ static struct cdevsw stl_cdevsw = {
/* bmaj */ -1
};
static int stl_devsw_installed;
static void stl_drvinit(void *unused)
{
@ -956,7 +954,7 @@ STATIC int stlstop(struct tty *tp, int rw)
STATIC struct tty *stldevtotty(dev_t dev)
{
#if DEBUG
printf("stldevtotty(dev=%x)\n", dev);
printf("stldevtotty(dev=%s)\n", devtoname(dev));
#endif
return((struct tty *) stl_dev2port(dev));
}

View File

@ -742,7 +742,7 @@ cd9660_vget_internal(mp, ino, vpp, relocated, isodir)
struct iso_mnt *imp;
struct iso_node *ip;
struct buf *bp;
struct vnode *vp, *nvp;
struct vnode *vp;
dev_t dev;
int error;

View File

@ -912,7 +912,7 @@ DBPRINT((" vntodn "));
int
devfs_dntovn(dn_p dnp, struct vnode **vn_pp)
{
struct vnode *vn_p, *nvp;
struct vnode *vn_p;
int error = 0;
struct proc *p = curproc; /* XXX */