diff options
author | Roland McGrath <roland@gnu.org> | 2002-05-08 09:29:13 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-05-08 09:29:13 +0000 |
commit | 9bd09e059b715971c804e7ee406fbfa1cde25a7e (patch) | |
tree | 9eb0265c116ea77bd62a443418455193c9d4342e /nfsd/cache.c | |
parent | 4429f5ee4d22d127bed28b4866ce4272c073de61 (diff) |
2002-05-07 Roland McGrath <roland@frob.com>
* loop.c (server_loop): size_t -> socklen_t
* cache.c (fh_hash): int -> intptr_t
Diffstat (limited to 'nfsd/cache.c')
-rw-r--r-- | nfsd/cache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nfsd/cache.c b/nfsd/cache.c index b97ea394..d4988b53 100644 --- a/nfsd/cache.c +++ b/nfsd/cache.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1996, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1996,98,99,2000,02 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -212,11 +212,11 @@ scan_creds () for (n = 0; n < IDHASH_TABLE_SIZE && nfreeids; n++) { struct idspec *i = idhashtable[n]; - + while (i && nfreeids) { struct idspec *next_i = i->next; - + if (!i->references && mapped_time->seconds - i->lastuse > ID_KEEP_TIMEOUT) { @@ -256,7 +256,7 @@ fh_hash (char *fhandle, struct idspec *i) for (n = 0; n < NFS2_FHSIZE; n++) hash += fhandle[n]; - hash += (int) i >> 6; + hash += (intptr_t) i >> 6; return hash % FHHASH_TABLE_SIZE; } @@ -540,7 +540,7 @@ scan_replies () while (cr && nfreereplies) { struct cached_reply *next_cr = cr->next; - + if (!cr->references && mapped_time->seconds - cr->lastuse > REPLY_KEEP_TIMEOUT) { |