diff options
author | phk <phk@FreeBSD.org> | 1999-08-28 19:44:07 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-08-28 19:44:07 +0000 |
commit | ad3452e25a53916a9628057b298e23373232d538 (patch) | |
tree | 2bc479bc29184c1388ee2f075a83d64f7ab0c5eb | |
parent | f6c7768ee995f37030781425a73e8d7494e5f01b (diff) | |
download | FreeBSD-src-ad3452e25a53916a9628057b298e23373232d538.zip FreeBSD-src-ad3452e25a53916a9628057b298e23373232d538.tar.gz |
Fix various trivial warnings from LINT
-rw-r--r-- | sys/dev/ida/ida.c | 2 | ||||
-rw-r--r-- | sys/fs/cd9660/cd9660_vfsops.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/cx.c | 1 | ||||
-rw-r--r-- | sys/i386/isa/istallion.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/stallion.c | 4 | ||||
-rw-r--r-- | sys/isofs/cd9660/cd9660_vfsops.c | 2 | ||||
-rw-r--r-- | sys/miscfs/devfs/devfs_tree.c | 2 |
7 files changed, 7 insertions, 8 deletions
diff --git a/sys/dev/ida/ida.c b/sys/dev/ida/ida.c index 509d046..0209203 100644 --- a/sys/dev/ida/ida.c +++ b/sys/dev/ida/ida.c @@ -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) { diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c index 0ed30ed..05615c3 100644 --- a/sys/fs/cd9660/cd9660_vfsops.c +++ b/sys/fs/cd9660/cd9660_vfsops.c @@ -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; diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c index 2b02732..da7f2e8 100644 --- a/sys/i386/isa/cx.c +++ b/sys/i386/isa/cx.c @@ -978,7 +978,6 @@ void cxtimeout (void *a) #if defined(__FreeBSD__) && (__FreeBSD__ > 1 ) -static int cx_devsw_installed; static void cx_drvinit(void *unused) { diff --git a/sys/i386/isa/istallion.c b/sys/i386/isa/istallion.c index 3ed23fe..597f927 100644 --- a/sys/i386/isa/istallion.c +++ b/sys/i386/isa/istallion.c @@ -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)); } diff --git a/sys/i386/isa/stallion.c b/sys/i386/isa/stallion.c index 4baeeef..628eb19b 100644 --- a/sys/i386/isa/stallion.c +++ b/sys/i386/isa/stallion.c @@ -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)); } diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 0ed30ed..05615c3 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/cd9660/cd9660_vfsops.c @@ -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; diff --git a/sys/miscfs/devfs/devfs_tree.c b/sys/miscfs/devfs/devfs_tree.c index 0c8e434..2b97d6d 100644 --- a/sys/miscfs/devfs/devfs_tree.c +++ b/sys/miscfs/devfs/devfs_tree.c @@ -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 */ |