aboutsummaryrefslogtreecommitdiff
path: root/nfsd/ops.c
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/ops.c
parent8c49801c8f7e3f800cabedf8fca8ccec3cf35a22 (diff)
downloadhurd-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.c14
1 files changed, 7 insertions, 7 deletions
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;
}