From 982261fec4707d0c8d0723d90d9c0e465d98aa93 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Wed, 12 Feb 2014 11:24:14 +0100 Subject: libnetfs: fix receiver lookups in fsys server functions * mutations.h: Add translation functions. * netfs.h (struct netfs_control): New declaration. * priv.h: Define translation functions. * fsys-get-options.c: Fix receiver lookups. * fsys-getroot.c: Likewise. * fsys-goaway.c: Likewise. * fsys-set-options.c: Likewise. * fsys-syncfs.c: Likewise. * fsysstubs.c: Likewise. --- libnetfs/fsys-set-options.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'libnetfs/fsys-set-options.c') diff --git a/libnetfs/fsys-set-options.c b/libnetfs/fsys-set-options.c index d7dc743b..fb1c87ef 100644 --- a/libnetfs/fsys-set-options.c +++ b/libnetfs/fsys-set-options.c @@ -31,15 +31,15 @@ /* Implement fsys_set_options as described in . */ error_t -netfs_S_fsys_set_options (fsys_t fsys, +netfs_S_fsys_set_options (struct netfs_control *pt, mach_port_t reply, mach_msg_type_name_t reply_type, char *data, mach_msg_type_number_t data_len, int do_children) { error_t err = 0; - struct port_info *pt = - ports_lookup_port (netfs_port_bucket, fsys, netfs_control_class); + if (!pt) + return EOPNOTSUPP; error_t helper (struct node *np) @@ -64,9 +64,6 @@ netfs_S_fsys_set_options (fsys_t fsys, return error; } - if (!pt) - return EOPNOTSUPP; - #if NOT_YET if (do_children) { @@ -87,7 +84,5 @@ netfs_S_fsys_set_options (fsys_t fsys, #endif } - ports_port_deref (pt); - return err; } -- cgit v1.2.3