summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvb <rvb@FreeBSD.org>1998-09-06 20:01:34 +0000
committerrvb <rvb@FreeBSD.org>1998-09-06 20:01:34 +0000
commite08529ca69b292c3c8e18e47ed49bfa82f03fbef (patch)
treee83fec92453831a80923a4f17b538027cc7b8bd1
parent70e4d378e2ccabcec6276cacbf9ee67ab6672ab2 (diff)
downloadFreeBSD-src-e08529ca69b292c3c8e18e47ed49bfa82f03fbef.zip
FreeBSD-src-e08529ca69b292c3c8e18e47ed49bfa82f03fbef.tar.gz
Clean LINT
-rw-r--r--sys/cfs/cfs_namecache.c12
-rw-r--r--sys/cfs/cfs_subr.c10
-rw-r--r--sys/cfs/cfs_subr.h6
-rw-r--r--sys/coda/coda_namecache.c12
-rw-r--r--sys/coda/coda_subr.c10
-rw-r--r--sys/coda/coda_subr.h6
-rw-r--r--sys/fs/coda/coda_namecache.c12
-rw-r--r--sys/fs/coda/coda_subr.c10
-rw-r--r--sys/fs/coda/coda_subr.h6
9 files changed, 54 insertions, 30 deletions
diff --git a/sys/cfs/cfs_namecache.c b/sys/cfs/cfs_namecache.c
index eb5e8bf..2a079e5 100644
--- a/sys/cfs/cfs_namecache.c
+++ b/sys/cfs/cfs_namecache.c
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/cfs/cfs_namecache.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: $
+ * $Id: cfs_namecache.c,v 1.2 1998/09/02 19:09:53 rvb Exp $
*
*/
@@ -47,6 +47,9 @@
/*
* HISTORY
* $Log: cfs_namecache.c,v $
+ * Revision 1.2 1998/09/02 19:09:53 rvb
+ * Pass2 complete
+ *
* Revision 1.1.1.1 1998/08/29 21:14:52 rvb
* Very Preliminary Coda
*
@@ -224,6 +227,10 @@
#include <cfs/coda.h>
#include <cfs/cnode.h>
#include <cfs/cfsnc.h>
+#ifdef DEBUG
+/* for printcred */
+#include <cfs/cfs_vnodeops.h>
+#endif
/*
* Declaration of the name cache data structure.
@@ -861,8 +868,6 @@ cfsnc_resize(hashsize, heapsize, dcstat)
return(0);
}
-#define DEBUG
-#ifdef DEBUG
char cfsnc_name_buf[CFS_MAXNAMLEN+1];
void
@@ -889,4 +894,3 @@ cfsnc_name(struct cnode *cp)
}
}
}
-#endif
diff --git a/sys/cfs/cfs_subr.c b/sys/cfs/cfs_subr.c
index a2fd792..5a55e8a 100644
--- a/sys/cfs/cfs_subr.c
+++ b/sys/cfs/cfs_subr.c
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/cfs/cfs_subr.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: $
+ * $Id: cfs_subr.c,v 1.2 1998/09/02 19:09:53 rvb Exp $
*
*/
@@ -46,6 +46,9 @@
/*
* HISTORY
* $Log: cfs_subr.c,v $
+ * Revision 1.2 1998/09/02 19:09:53 rvb
+ * Pass2 complete
+ *
* Revision 1.1.1.1 1998/08/29 21:14:52 rvb
* Very Preliminary Coda
*
@@ -453,6 +456,7 @@ cfs_unmounting(whoIam)
}
#ifdef DEBUG
+void
cfs_checkunmounting(mp)
struct mount *mp;
{
@@ -474,7 +478,7 @@ loop:
}
}
-int
+void
cfs_cacheprint(whoIam)
struct mount *whoIam;
{
@@ -483,7 +487,7 @@ cfs_cacheprint(whoIam)
int count = 0;
printf("cfs_cacheprint: cfs_ctlvp %p, cp %p", cfs_ctlvp, VTOC(cfs_ctlvp));
- cfsnc_name(cfs_ctlvp);
+ cfsnc_name(VTOC(cfs_ctlvp));
printf("\n");
for (hash = 0; hash < CFS_CACHESIZE; hash++) {
diff --git a/sys/cfs/cfs_subr.h b/sys/cfs/cfs_subr.h
index 4beedc9..0263432 100644
--- a/sys/cfs/cfs_subr.h
+++ b/sys/cfs/cfs_subr.h
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/cfs/cfs_subr.h,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: $
+ * $Id: cfs_subr.h,v 1.2 1998/09/02 19:09:53 rvb Exp $
*
*/
@@ -36,8 +36,8 @@ void cfs_free(struct cnode *cp);
struct cnode *cfs_find(ViceFid *fid);
void cfs_flush(enum dc_status dcstat);
void cfs_testflush(void);
-int cfs_checkunmounting(struct mount *mp);
-int cfs_cacheprint(struct mount *whoIam);
+void cfs_checkunmounting(struct mount *mp);
+void cfs_cacheprint(struct mount *whoIam);
void cfs_debugon(void);
void cfs_debugoff(void);
int cfs_kill(struct mount *whoIam, enum dc_status dcstat);
diff --git a/sys/coda/coda_namecache.c b/sys/coda/coda_namecache.c
index eb5e8bf..2a079e5 100644
--- a/sys/coda/coda_namecache.c
+++ b/sys/coda/coda_namecache.c
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/cfs/cfs_namecache.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: $
+ * $Id: cfs_namecache.c,v 1.2 1998/09/02 19:09:53 rvb Exp $
*
*/
@@ -47,6 +47,9 @@
/*
* HISTORY
* $Log: cfs_namecache.c,v $
+ * Revision 1.2 1998/09/02 19:09:53 rvb
+ * Pass2 complete
+ *
* Revision 1.1.1.1 1998/08/29 21:14:52 rvb
* Very Preliminary Coda
*
@@ -224,6 +227,10 @@
#include <cfs/coda.h>
#include <cfs/cnode.h>
#include <cfs/cfsnc.h>
+#ifdef DEBUG
+/* for printcred */
+#include <cfs/cfs_vnodeops.h>
+#endif
/*
* Declaration of the name cache data structure.
@@ -861,8 +868,6 @@ cfsnc_resize(hashsize, heapsize, dcstat)
return(0);
}
-#define DEBUG
-#ifdef DEBUG
char cfsnc_name_buf[CFS_MAXNAMLEN+1];
void
@@ -889,4 +894,3 @@ cfsnc_name(struct cnode *cp)
}
}
}
-#endif
diff --git a/sys/coda/coda_subr.c b/sys/coda/coda_subr.c
index a2fd792..5a55e8a 100644
--- a/sys/coda/coda_subr.c
+++ b/sys/coda/coda_subr.c
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/cfs/cfs_subr.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: $
+ * $Id: cfs_subr.c,v 1.2 1998/09/02 19:09:53 rvb Exp $
*
*/
@@ -46,6 +46,9 @@
/*
* HISTORY
* $Log: cfs_subr.c,v $
+ * Revision 1.2 1998/09/02 19:09:53 rvb
+ * Pass2 complete
+ *
* Revision 1.1.1.1 1998/08/29 21:14:52 rvb
* Very Preliminary Coda
*
@@ -453,6 +456,7 @@ cfs_unmounting(whoIam)
}
#ifdef DEBUG
+void
cfs_checkunmounting(mp)
struct mount *mp;
{
@@ -474,7 +478,7 @@ loop:
}
}
-int
+void
cfs_cacheprint(whoIam)
struct mount *whoIam;
{
@@ -483,7 +487,7 @@ cfs_cacheprint(whoIam)
int count = 0;
printf("cfs_cacheprint: cfs_ctlvp %p, cp %p", cfs_ctlvp, VTOC(cfs_ctlvp));
- cfsnc_name(cfs_ctlvp);
+ cfsnc_name(VTOC(cfs_ctlvp));
printf("\n");
for (hash = 0; hash < CFS_CACHESIZE; hash++) {
diff --git a/sys/coda/coda_subr.h b/sys/coda/coda_subr.h
index 4beedc9..0263432 100644
--- a/sys/coda/coda_subr.h
+++ b/sys/coda/coda_subr.h
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/cfs/cfs_subr.h,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: $
+ * $Id: cfs_subr.h,v 1.2 1998/09/02 19:09:53 rvb Exp $
*
*/
@@ -36,8 +36,8 @@ void cfs_free(struct cnode *cp);
struct cnode *cfs_find(ViceFid *fid);
void cfs_flush(enum dc_status dcstat);
void cfs_testflush(void);
-int cfs_checkunmounting(struct mount *mp);
-int cfs_cacheprint(struct mount *whoIam);
+void cfs_checkunmounting(struct mount *mp);
+void cfs_cacheprint(struct mount *whoIam);
void cfs_debugon(void);
void cfs_debugoff(void);
int cfs_kill(struct mount *whoIam, enum dc_status dcstat);
diff --git a/sys/fs/coda/coda_namecache.c b/sys/fs/coda/coda_namecache.c
index eb5e8bf..2a079e5 100644
--- a/sys/fs/coda/coda_namecache.c
+++ b/sys/fs/coda/coda_namecache.c
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/cfs/cfs_namecache.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: $
+ * $Id: cfs_namecache.c,v 1.2 1998/09/02 19:09:53 rvb Exp $
*
*/
@@ -47,6 +47,9 @@
/*
* HISTORY
* $Log: cfs_namecache.c,v $
+ * Revision 1.2 1998/09/02 19:09:53 rvb
+ * Pass2 complete
+ *
* Revision 1.1.1.1 1998/08/29 21:14:52 rvb
* Very Preliminary Coda
*
@@ -224,6 +227,10 @@
#include <cfs/coda.h>
#include <cfs/cnode.h>
#include <cfs/cfsnc.h>
+#ifdef DEBUG
+/* for printcred */
+#include <cfs/cfs_vnodeops.h>
+#endif
/*
* Declaration of the name cache data structure.
@@ -861,8 +868,6 @@ cfsnc_resize(hashsize, heapsize, dcstat)
return(0);
}
-#define DEBUG
-#ifdef DEBUG
char cfsnc_name_buf[CFS_MAXNAMLEN+1];
void
@@ -889,4 +894,3 @@ cfsnc_name(struct cnode *cp)
}
}
}
-#endif
diff --git a/sys/fs/coda/coda_subr.c b/sys/fs/coda/coda_subr.c
index a2fd792..5a55e8a 100644
--- a/sys/fs/coda/coda_subr.c
+++ b/sys/fs/coda/coda_subr.c
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/cfs/cfs_subr.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: $
+ * $Id: cfs_subr.c,v 1.2 1998/09/02 19:09:53 rvb Exp $
*
*/
@@ -46,6 +46,9 @@
/*
* HISTORY
* $Log: cfs_subr.c,v $
+ * Revision 1.2 1998/09/02 19:09:53 rvb
+ * Pass2 complete
+ *
* Revision 1.1.1.1 1998/08/29 21:14:52 rvb
* Very Preliminary Coda
*
@@ -453,6 +456,7 @@ cfs_unmounting(whoIam)
}
#ifdef DEBUG
+void
cfs_checkunmounting(mp)
struct mount *mp;
{
@@ -474,7 +478,7 @@ loop:
}
}
-int
+void
cfs_cacheprint(whoIam)
struct mount *whoIam;
{
@@ -483,7 +487,7 @@ cfs_cacheprint(whoIam)
int count = 0;
printf("cfs_cacheprint: cfs_ctlvp %p, cp %p", cfs_ctlvp, VTOC(cfs_ctlvp));
- cfsnc_name(cfs_ctlvp);
+ cfsnc_name(VTOC(cfs_ctlvp));
printf("\n");
for (hash = 0; hash < CFS_CACHESIZE; hash++) {
diff --git a/sys/fs/coda/coda_subr.h b/sys/fs/coda/coda_subr.h
index 4beedc9..0263432 100644
--- a/sys/fs/coda/coda_subr.h
+++ b/sys/fs/coda/coda_subr.h
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/cfs/cfs_subr.h,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: $
+ * $Id: cfs_subr.h,v 1.2 1998/09/02 19:09:53 rvb Exp $
*
*/
@@ -36,8 +36,8 @@ void cfs_free(struct cnode *cp);
struct cnode *cfs_find(ViceFid *fid);
void cfs_flush(enum dc_status dcstat);
void cfs_testflush(void);
-int cfs_checkunmounting(struct mount *mp);
-int cfs_cacheprint(struct mount *whoIam);
+void cfs_checkunmounting(struct mount *mp);
+void cfs_cacheprint(struct mount *whoIam);
void cfs_debugon(void);
void cfs_debugoff(void);
int cfs_kill(struct mount *whoIam, enum dc_status dcstat);
OpenPOWER on IntegriCloud