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/ops.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'nfsd/ops.c') diff --git a/nfsd/ops.c b/nfsd/ops.c index 6e2cbb15..aa37c4a4 100644 --- a/nfsd/ops.c +++ b/nfsd/ops.c @@ -181,10 +181,10 @@ op_lookup (struct cache_handle *c, if (err) return err; - newc = create_cached_handle (*(int *)c->handle, c, newport); + newc = create_cached_handle (c->handle.fs, c, newport); if (!newc) return ESTALE; - *reply = encode_fhandle (*reply, newc->handle); + *reply = encode_fhandle (*reply, newc->handle.array); *reply = encode_fattr (*reply, &st, version); return 0; } @@ -375,11 +375,11 @@ op_create (struct cache_handle *c, } free (name); - newc = create_cached_handle (*(int *)c->handle, c, newport); + newc = create_cached_handle (c->handle.fs, c, newport); if (!newc) return ESTALE; - *reply = encode_fhandle (*reply, newc->handle); + *reply = encode_fhandle (*reply, newc->handle.array); *reply = encode_fattr (*reply, &st, version); return 0; } @@ -533,10 +533,10 @@ op_mkdir (struct cache_handle *c, if (err) return err; - newc = create_cached_handle (*(int *)c->handle, c, newport); + newc = create_cached_handle (c->handle.fs, c, newport); if (!newc) return ESTALE; - *reply = encode_fhandle (*reply, newc->handle); + *reply = encode_fhandle (*reply, newc->handle.array); *reply = encode_fattr (*reply, &st, version); return 0; } @@ -666,7 +666,7 @@ op_mnt (struct cache_handle *c, free (name); if (!newc) return ESTALE; - *reply = encode_fhandle (*reply, newc->handle); + *reply = encode_fhandle (*reply, newc->handle.array); return 0; } -- cgit v1.2.3