diff options
author | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
commit | d93fbc99166053b75c2eeb69b5cb603cfaf79ec0 (patch) | |
tree | a4f130be4544ce7cfe4afa8c93f996b871433cb8 /sys/nfs/nqnfs.h | |
parent | e814d2a0db522b0f163eef55a56d05aa226951f3 (diff) | |
download | FreeBSD-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/nfs/nqnfs.h')
-rw-r--r-- | sys/nfs/nqnfs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfs/nqnfs.h b/sys/nfs/nqnfs.h index 15b5af5..a76b94b 100644 --- a/sys/nfs/nqnfs.h +++ b/sys/nfs/nqnfs.h @@ -104,8 +104,8 @@ struct nqhost { #define lph_inetaddr lph_un.un_udp.udp_haddr.had_inetaddr struct nqlease { - LIST_ENTRY(nqlease) lc_hash; /* Fhandle hash list */ - CIRCLEQ_ENTRY(nqlease) lc_timer; /* Timer queue list */ + LIST_ENTRY(struct nqlease) lc_hash; /* Fhandle hash list */ + CIRCLEQ_ENTRY(struct nqlease) lc_timer; /* Timer queue list */ time_t lc_expiry; /* Expiry time (sec) */ struct nqhost lc_host; /* Host that got lease */ struct nqm *lc_morehosts; /* Other hosts that share read lease */ @@ -173,14 +173,14 @@ struct nqm { /* * List head for timer queue. */ -extern CIRCLEQ_HEAD(nqtimerhead, nqlease) nqtimerhead; +extern CIRCLEQ_HEAD(nqtimerhead, struct nqlease) nqtimerhead; /* * List head for the file handle hash table. */ #define NQFHHASH(f) \ (&nqfhhashtbl[(*((u_int32_t *)(f))) & nqfhhash]) -extern LIST_HEAD(nqfhhashhead, nqlease) *nqfhhashtbl; +extern LIST_HEAD(nqfhhashhead, struct nqlease) *nqfhhashtbl; extern u_long nqfhhash; /* |