summaryrefslogtreecommitdiffstats
path: root/sys/ntfs
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2000-05-23 20:41:01 +0000
committerjake <jake@FreeBSD.org>2000-05-23 20:41:01 +0000
commitd93fbc99166053b75c2eeb69b5cb603cfaf79ec0 (patch)
treea4f130be4544ce7cfe4afa8c93f996b871433cb8 /sys/ntfs
parente814d2a0db522b0f163eef55a56d05aa226951f3 (diff)
downloadFreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.zip
FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.tar.gz
Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
Diffstat (limited to 'sys/ntfs')
-rw-r--r--sys/ntfs/ntfs_ihash.c2
-rw-r--r--sys/ntfs/ntfs_inode.h8
-rw-r--r--sys/ntfs/ntfs_subr.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/ntfs/ntfs_ihash.c b/sys/ntfs/ntfs_ihash.c
index 0deecff..0ddf074 100644
--- a/sys/ntfs/ntfs_ihash.c
+++ b/sys/ntfs/ntfs_ihash.c
@@ -54,7 +54,7 @@ MALLOC_DEFINE(M_NTFSNTHASH, "NTFS nthash", "NTFS ntnode hash tables");
/*
* Structures associated with inode cacheing.
*/
-static LIST_HEAD(nthashhead, ntnode) *ntfs_nthashtbl;
+static LIST_HEAD(nthashhead, struct ntnode) *ntfs_nthashtbl;
static u_long ntfs_nthash; /* size of hash table - 1 */
#define NTNOHASH(device, inum) (&ntfs_nthashtbl[(minor(device) + (inum)) & ntfs_nthash])
#ifndef NULL_SIMPLELOCKS
diff --git a/sys/ntfs/ntfs_inode.h b/sys/ntfs/ntfs_inode.h
index a86d5f7..a14e008 100644
--- a/sys/ntfs/ntfs_inode.h
+++ b/sys/ntfs/ntfs_inode.h
@@ -60,7 +60,7 @@ struct ntnode {
struct vnode *i_devvp; /* vnode of blk dev we live on */
dev_t i_dev; /* Device associated with the inode. */
- LIST_ENTRY(ntnode) i_hash;
+ LIST_ENTRY(struct ntnode) i_hash;
struct ntnode *i_next;
struct ntnode **i_prev;
struct ntfsmount *i_mp;
@@ -72,8 +72,8 @@ struct ntnode {
struct simplelock i_interlock;
int i_usecount;
- LIST_HEAD(,fnode) i_fnlist;
- LIST_HEAD(,ntvattr) i_valist;
+ LIST_HEAD(, struct fnode) i_fnlist;
+ LIST_HEAD(, struct ntvattr) i_valist;
long i_nlink; /* MFR */
ino_t i_mainrec; /* MFR */
@@ -88,7 +88,7 @@ struct fnode {
struct lock f_lock; /* fnode lock >Keep this first< */
#endif
- LIST_ENTRY(fnode) f_fnlist;
+ LIST_ENTRY(struct fnode) f_fnlist;
struct vnode *f_vp; /* Associatied vnode */
struct ntnode *f_ip; /* Associated ntnode */
u_long f_flag;
diff --git a/sys/ntfs/ntfs_subr.h b/sys/ntfs/ntfs_subr.h
index a0cda50..f172c56 100644
--- a/sys/ntfs/ntfs_subr.h
+++ b/sys/ntfs/ntfs_subr.h
@@ -32,7 +32,7 @@
#define VA_PRELOADED 0x0002
struct ntvattr {
- LIST_ENTRY(ntvattr) va_list;
+ LIST_ENTRY(struct ntvattr) va_list;
u_int32_t va_vflag;
struct vnode *va_vp;
OpenPOWER on IntegriCloud