summaryrefslogtreecommitdiff
path: root/nfsd/nfsd.h
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2015-12-29 23:10:44 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-12-29 23:17:16 +0100
commitd73d717ecac42457f12a2d843454ecda3aa7b004 (patch)
tree2e023dd0c558be020b9dda9098977b9f4d49fe28 /nfsd/nfsd.h
parent8c49801c8f7e3f800cabedf8fca8ccec3cf35a22 (diff)
fix compiler warnings in hurd/nfs and hurd/nfsd
nfs: Fix compiler warnings. * nfs/ops.c (netfs_get_dirents): Initialize buf. * nfsd/nfsd.h: Define cache_handle_array union. * nfsd/cache.c: Use new cache_handle_array union. * nfds/ops.c: Likewise.
Diffstat (limited to 'nfsd/nfsd.h')
-rw-r--r--nfsd/nfsd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/nfsd/nfsd.h b/nfsd/nfsd.h
index 4afff061..4ab558c4 100644
--- a/nfsd/nfsd.h
+++ b/nfsd/nfsd.h
@@ -42,10 +42,15 @@ struct idspec
int references;
};
+union cache_handle_array {
+ char array[NFS2_FHSIZE];
+ int fs;
+};
+
struct cache_handle
{
struct cache_handle *next, **prevp;
- char handle[NFS2_FHSIZE];
+ union cache_handle_array handle;
struct idspec *ids;
file_t port;
time_t lastuse;