summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-03-16 18:17:34 +0000
committerbde <bde@FreeBSD.org>1995-03-16 18:17:34 +0000
commit289f11acb49b6dbb3081e09bf94a86f008f55814 (patch)
treee4952f18ac85eccbbd3d9b0f010098732d07fe6d /sys/ufs
parent4c4945abee9eabe3a2be340ba973ae861c21a3c6 (diff)
downloadFreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.zip
FreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.tar.gz
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c5
-rw-r--r--sys/ufs/lfs/lfs_vfsops.c3
-rw-r--r--sys/ufs/mfs/mfs_vfsops.c3
-rw-r--r--sys/ufs/ufs/ufs_vnops.c7
4 files changed, 4 insertions, 14 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 6ba5040..be81fcd 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ffs_vfsops.c 8.8 (Berkeley) 4/18/94
- * $Id: ffs_vfsops.c,v 1.11 1994/10/28 12:42:03 jkh Exp $
+ * $Id: ffs_vfsops.c,v 1.12 1994/11/14 13:21:42 bde Exp $
*/
#include <sys/param.h>
@@ -60,8 +60,6 @@
#include <ufs/ffs/fs.h>
#include <ufs/ffs/ffs_extern.h>
-#include <machine/clock.h> /* What is inittodr() doing in a fs anyway ? */
-
int ffs_sbupdate __P((struct ufsmount *, int));
int ffs_flushfiles __P((struct mount *, int, struct proc *));
int ffs_reload __P((struct mount *,struct ucred *,struct proc *));
@@ -552,7 +550,6 @@ ffs_flushfiles(mp, flags, p)
int flags;
struct proc *p;
{
- extern int doforce;
register struct ufsmount *ump;
int error;
diff --git a/sys/ufs/lfs/lfs_vfsops.c b/sys/ufs/lfs/lfs_vfsops.c
index 6c9f55f..27b46c1 100644
--- a/sys/ufs/lfs/lfs_vfsops.c
+++ b/sys/ufs/lfs/lfs_vfsops.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)lfs_vfsops.c 8.7 (Berkeley) 4/16/94
- * $Id: lfs_vfsops.c,v 1.8 1994/11/14 13:21:53 bde Exp $
+ * $Id: lfs_vfsops.c,v 1.9 1994/11/17 01:30:53 gibbs Exp $
*/
#include <sys/param.h>
@@ -322,7 +322,6 @@ lfs_unmount(mp, mntflags, p)
int mntflags;
struct proc *p;
{
- extern int doforce;
register struct ufsmount *ump;
register struct lfs *fs;
int i, error, flags, ronly;
diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c
index d145208..79822d7 100644
--- a/sys/ufs/mfs/mfs_vfsops.c
+++ b/sys/ufs/mfs/mfs_vfsops.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)mfs_vfsops.c 8.4 (Berkeley) 4/16/94
- * $Id: mfs_vfsops.c,v 1.4 1994/08/18 22:35:55 wollman Exp $
+ * $Id: mfs_vfsops.c,v 1.5 1994/09/21 03:47:42 wollman Exp $
*/
#include <sys/param.h>
@@ -157,7 +157,6 @@ mfs_initminiroot(base)
caddr_t base;
{
struct fs *fs = (struct fs *)(base + SBOFF);
- extern int (*mountroot)();
/* check for valid super block */
if (fs->fs_magic != FS_MAGIC || fs->fs_bsize > MAXBSIZE ||
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c
index 6b48c7e..8bf1ef3 100644
--- a/sys/ufs/ufs/ufs_vnops.c
+++ b/sys/ufs/ufs/ufs_vnops.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_vnops.c 8.10 (Berkeley) 4/1/94
- * $Id: ufs_vnops.c,v 1.15 1995/02/14 06:12:26 phk Exp $
+ * $Id: ufs_vnops.c,v 1.16 1995/03/11 22:23:14 davidg Exp $
*/
#include <sys/param.h>
@@ -1754,8 +1754,6 @@ ufsfifo_read(ap)
struct ucred *a_cred;
} */ *ap;
{
- extern int (**fifo_vnodeop_p)();
-
/*
* Set access flag.
*/
@@ -1775,8 +1773,6 @@ ufsfifo_write(ap)
struct ucred *a_cred;
} */ *ap;
{
- extern int (**fifo_vnodeop_p)();
-
/*
* Set update and change flags.
*/
@@ -1798,7 +1794,6 @@ ufsfifo_close(ap)
struct proc *a_p;
} */ *ap;
{
- extern int (**fifo_vnodeop_p)();
register struct inode *ip = VTOI(ap->a_vp);
if (ap->a_vp->v_usecount > 1 && !(ip->i_flag & IN_LOCKED))
OpenPOWER on IntegriCloud