diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-16 21:42:40 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-16 21:42:40 +0000 |
commit | f9df00feb36c4e7531a5156e6e9b8b6df8e816ca (patch) | |
tree | 424cbe6b01963dc42073f37150462d102ee16a48 /libdiskfs | |
parent | 2a631784e69249c6dc20dc70e18d36f1b1ea59cc (diff) |
(diskfs_S_file_get_translator_cntl): Use fshelp_fetch_control instead
of old interface.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/file-get-transcntl.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/libdiskfs/file-get-transcntl.c b/libdiskfs/file-get-transcntl.c index 4a865d8c..2c31c2d1 100644 --- a/libdiskfs/file-get-transcntl.c +++ b/libdiskfs/file-get-transcntl.c @@ -1,5 +1,5 @@ /* libkdiskfs implementation of fs.defs: file_get_translator_cntl - Copyright (C) 1992, 1993, 1994 Free Software Foundation + Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -32,17 +32,13 @@ diskfs_S_file_get_translator_cntl (struct protid *cred, np = cred->po->np; - if (np->translator.control == MACH_PORT_NULL) + error = diskfs_isowner (np, cred); + if (!error) + error = fshelp_fetch_control (&np->transbox, ctl); + if (ctl == MACH_PORT_NULL) error = ENXIO; - else - error = diskfs_isowner (np, cred); - if (!error) - { - *ctl = np->translator.control; - *ctltype = MACH_MSG_TYPE_COPY_SEND; - } - + *ctltype = MACH_MSG_TYPE_COPY_SEND; diskfs_nput (np); return error; } |