From d73d717ecac42457f12a2d843454ecda3aa7b004 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 29 Dec 2015 23:10:44 +0100 Subject: 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. --- nfsd/nfsd.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nfsd/nfsd.h') 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; -- cgit v1.2.3