From 85ad884eb2f48a2e3b259b15fe1d7cb675cb2270 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 24 Oct 1998 07:52:50 +0000 Subject: 1998-10-20 Roland McGrath * dir-lookup.c (diskfs_S_dir_lookup): Add braces to silence gcc warning. * io-identity.c (diskfs_S_io_identity): Likewise. * opts-append-std.c (diskfs_append_std_options): Likewise. * opts-std-runtime.c (set_opts): Likewise. --- libdiskfs/io-identity.c | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'libdiskfs/io-identity.c') diff --git a/libdiskfs/io-identity.c b/libdiskfs/io-identity.c index 39ca3706..5717a7d2 100644 --- a/libdiskfs/io-identity.c +++ b/libdiskfs/io-identity.c @@ -1,5 +1,5 @@ /* libdiskfs implementation of io_identity RPC - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -36,7 +36,7 @@ diskfs_S_io_identity (struct protid *cred, if (!cred) return EOPNOTSUPP; - + np = cred->po->np; mutex_lock (&np->lock); inum = np->dn_stat.st_ino; @@ -44,22 +44,24 @@ diskfs_S_io_identity (struct protid *cred, err = fshelp_get_identity (diskfs_port_bucket, inum, id); if (! err) - if (cred->po->shadow_root && cred->po->shadow_root != diskfs_root_node) - { - err = fshelp_get_identity (diskfs_port_bucket, - cred->po->shadow_root->dn_stat.st_ino, - fsys); - if (err) - mach_port_deallocate (mach_task_self (), *id); - } - else - *fsys = diskfs_fsys_identity; + { + if (cred->po->shadow_root && cred->po->shadow_root != diskfs_root_node) + { + err = fshelp_get_identity (diskfs_port_bucket, + cred->po->shadow_root->dn_stat.st_ino, + fsys); + if (err) + mach_port_deallocate (mach_task_self (), *id); + } + else + *fsys = diskfs_fsys_identity; + } if (! err) { *idtype = MACH_MSG_TYPE_MAKE_SEND; *fsystype = MACH_MSG_TYPE_MAKE_SEND; *fileno = np->dn_stat.st_ino; } - + return err; } -- cgit v1.2.3