diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-10 00:35:58 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-10 00:35:58 +0000 |
commit | 018b1fd46602130ccad13b09287d15a49b4b8c76 (patch) | |
tree | 7328ac62fd71763fa4406c176d0eb09710e357cf | |
parent | 059b3079a911f540f3156e75546f38e2f526b628 (diff) |
(trivfs_S_io_identity): fixup
-rw-r--r-- | libtrivfs/io-identity.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libtrivfs/io-identity.c b/libtrivfs/io-identity.c index d563d8bf..94c5d68d 100644 --- a/libtrivfs/io-identity.c +++ b/libtrivfs/io-identity.c @@ -32,19 +32,20 @@ trivfs_S_io_identity (struct trivfs_protid *cred, int *fileno) { error_t err; + struct stat st; if (!cred) return EOPNOTSUPP; - err = io_stat (cred->realnode, st); + err = io_stat (cred->realnode, &st); if (err) return err; - trivfs_modify_stat (cred, st); + trivfs_modify_stat (cred, &st); *idport = cred->po->cntl->file_id; *idport_type = MACH_MSG_TYPE_MAKE_SEND; *fsidport = cred->po->cntl->filesys_id; *fsidport_type = MACH_MSG_TYPE_MAKE_SEND; - *fileno = st->st_fileno; + *fileno = st.st_fileno; return 0; } |