summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-02-14 01:25:42 +0000
committerMiles Bader <miles@gnu.org>1997-02-14 01:25:42 +0000
commit09a4305362adcd80565cdce1a6e66e05e6175799 (patch)
treed5f8d9450bb7f60d0312974452b1003c2962efd8
parentbbacf5a4406bfdadb609a9b6001fdec784da6426 (diff)
(_diskfs_translator_callback2_fn):
Pass COOKIE directly to diskfs_make_peropen instead of unpacking each arg.
-rw-r--r--libdiskfs/trans-callback.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libdiskfs/trans-callback.c b/libdiskfs/trans-callback.c
index 57596950..9a78efa1 100644
--- a/libdiskfs/trans-callback.c
+++ b/libdiskfs/trans-callback.c
@@ -53,7 +53,6 @@ _diskfs_translator_callback2_fn (void *cookie1, void *cookie2,
mach_msg_type_name_t *underlying_type)
{
struct node *np = cookie1;
- struct diskfs_trans_callback_cookie2 *c2 = cookie2;
struct protid *cred;
error_t err;
struct idvec *uids, *gids;
@@ -64,8 +63,7 @@ _diskfs_translator_callback2_fn (void *cookie1, void *cookie2,
idvec_set_ids (gids, &np->dn_stat.st_gid, 1);
err =
- diskfs_create_protid (diskfs_make_peropen (np, flags,
- c2->dotdot, c2->depth),
+ diskfs_create_protid (diskfs_make_peropen (np, flags, cookie2),
iohelp_create_iouser (uids, gids), &cred);
if (! err)
{