diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2015-12-29 23:10:44 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-12-29 23:17:16 +0100 |
commit | d73d717ecac42457f12a2d843454ecda3aa7b004 (patch) | |
tree | 2e023dd0c558be020b9dda9098977b9f4d49fe28 /nfsd/ops.c | |
parent | 8c49801c8f7e3f800cabedf8fca8ccec3cf35a22 (diff) | |
download | hurd-d73d717ecac42457f12a2d843454ecda3aa7b004.tar.gz hurd-d73d717ecac42457f12a2d843454ecda3aa7b004.tar.bz2 hurd-d73d717ecac42457f12a2d843454ecda3aa7b004.zip |
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/ops.c')
-rw-r--r-- | nfsd/ops.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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; } |