diff options
author | Archie Cobbs <archie@FreeBSD.org> | 1998-12-07 21:58:50 +0000 |
---|---|---|
committer | Archie Cobbs <archie@FreeBSD.org> | 1998-12-07 21:58:50 +0000 |
commit | f1d19042b082d95f07a0027e596ba2405aa8a9a5 (patch) | |
tree | b856be4db5efb04d68d01039a157119ac8613b9f /sys/msdosfs | |
parent | f769cca5eb9fed523269d85eefe74037ff7bd1b5 (diff) | |
download | src-f1d19042b082d95f07a0027e596ba2405aa8a9a5.tar.gz src-f1d19042b082d95f07a0027e596ba2405aa8a9a5.zip |
The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static
and local variables, goto labels, and functions declared but not defined.
Notes
Notes:
svn path=/head/; revision=41591
Diffstat (limited to 'sys/msdosfs')
-rw-r--r-- | sys/msdosfs/msdosfs_denode.c | 5 | ||||
-rw-r--r-- | sys/msdosfs/msdosfs_lookup.c | 6 | ||||
-rw-r--r-- | sys/msdosfs/msdosfs_vfsops.c | 4 | ||||
-rw-r--r-- | sys/msdosfs/msdosfs_vnops.c | 4 |
4 files changed, 5 insertions, 14 deletions
diff --git a/sys/msdosfs/msdosfs_denode.c b/sys/msdosfs/msdosfs_denode.c index cbbecb3e5b16..ac18e01bada0 100644 --- a/sys/msdosfs/msdosfs_denode.c +++ b/sys/msdosfs/msdosfs_denode.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_denode.c,v 1.41 1998/11/10 09:16:29 peter Exp $ */ +/* $Id: msdosfs_denode.c,v 1.42 1998/11/21 00:20:24 dt Exp $ */ /* $NetBSD: msdosfs_denode.c,v 1.28 1998/02/10 14:10:00 mrg Exp $ */ /*- @@ -417,7 +417,6 @@ detrunc(dep, length, flags, cred, p) int isadir = dep->de_Attributes & ATTR_DIRECTORY; struct buf *bp; struct msdosfsmount *pmp = dep->de_pmp; - struct timespec ts; #ifdef MSDOSFS_DEBUG printf("detrunc(): file %s, length %lu, flags %x\n", dep->de_Name, length, flags); @@ -560,7 +559,6 @@ deextend(dep, length, cred) struct msdosfsmount *pmp = dep->de_pmp; u_long count; int error; - struct timespec ts; /* * The root of a DOS filesystem cannot be extended. @@ -666,7 +664,6 @@ msdosfs_inactive(ap) struct denode *dep = VTODE(vp); struct proc *p = ap->a_p; int error = 0; - struct timespec ts; #ifdef MSDOSFS_DEBUG printf("msdosfs_inactive(): dep %p, de_Name[0] %x\n", dep, dep->de_Name[0]); diff --git a/sys/msdosfs/msdosfs_lookup.c b/sys/msdosfs/msdosfs_lookup.c index 4827201100b7..9323cd5d5913 100644 --- a/sys/msdosfs/msdosfs_lookup.c +++ b/sys/msdosfs/msdosfs_lookup.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_lookup.c,v 1.25 1998/05/18 10:24:26 dt Exp $ */ +/* $Id: msdosfs_lookup.c,v 1.26 1998/09/13 15:40:31 dt Exp $ */ /* $NetBSD: msdosfs_lookup.c,v 1.37 1997/11/17 15:36:54 ws Exp $ */ /*- @@ -61,9 +61,6 @@ #include <msdosfs/msdosfsmount.h> #include <msdosfs/fat.h> -static int markdeleted __P((struct msdosfsmount *pmp, u_long dirclust, - u_long diroffset)); - /* * When we search a directory the blocks containing directory entries are * read and examined. The directory entries contain information that would @@ -109,7 +106,6 @@ msdosfs_lookup(ap) struct msdosfsmount *pmp; struct buf *bp = 0; struct direntry *dep = NULL; - struct ucred *cred = cnp->cn_cred; u_char dosfilename[12]; int flags = cnp->cn_flags; int nameiop = cnp->cn_nameiop; diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index 02ed050f2085..b3a63b55d613 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_vfsops.c,v 1.37 1998/10/25 19:26:18 bde Exp $ */ +/* $Id: msdosfs_vfsops.c,v 1.38 1998/10/31 15:31:24 peter Exp $ */ /* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */ /*- @@ -365,6 +365,7 @@ mountmsdosfs(devvp, mp, p, argp) dev_t dev = devvp->v_rdev; #ifndef __FreeBSD__ struct partinfo dpart; + int bsize = 0, dtype = 0, tmp; #endif union bootsector *bsp; struct byte_bpb33 *b33; @@ -372,7 +373,6 @@ mountmsdosfs(devvp, mp, p, argp) struct byte_bpb710 *b710; u_int8_t SecPerClust; int ronly, error; - int bsize = 0, dtype = 0, tmp; /* * Disallow multiple mounts of the same device. diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c index 1b9353d8e6b3..aad4e6ba9f1e 100644 --- a/sys/msdosfs/msdosfs_vnops.c +++ b/sys/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_vnops.c,v 1.78 1998/11/21 00:20:24 dt Exp $ */ +/* $Id: msdosfs_vnops.c,v 1.79 1998/11/29 22:38:57 dt Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */ /*- @@ -329,7 +329,6 @@ msdosfs_getattr(ap) struct proc *a_p; } */ *ap; { - u_int cn; struct denode *dep = VTODE(ap->a_vp); struct msdosfsmount *pmp = dep->de_pmp; struct vattr *vap = ap->a_vap; @@ -1798,7 +1797,6 @@ msdosfs_bmap(ap) } */ *ap; { struct denode *dep = VTODE(ap->a_vp); - struct msdosfsmount *pmp = dep->de_pmp; if (ap->a_vpp != NULL) *ap->a_vpp = dep->de_devvp; |