diff options
author | Roland McGrath <roland@gnu.org> | 2002-06-11 21:39:15 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-06-11 21:39:15 +0000 |
commit | c4f1014088eb63078347a0783e5f6360fe606028 (patch) | |
tree | cab406b7cfc4efa3b8baf7e382aaa852da5dc796 /libnetfs/io-identity.c | |
parent | 2fd04f50451116c6cfd8ba92c385982129c3acda (diff) |
2002-06-08 Roland McGrath <roland@frob.com>
* io-identity.c (netfs_S_io_identity): Use ino_t for FILENO.
Diffstat (limited to 'libnetfs/io-identity.c')
-rw-r--r-- | libnetfs/io-identity.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libnetfs/io-identity.c b/libnetfs/io-identity.c index e259a0f7..e62a01e4 100644 --- a/libnetfs/io-identity.c +++ b/libnetfs/io-identity.c @@ -1,5 +1,5 @@ /* libnetfs implementation of io_identity RPC - Copyright (C) 1996 Free Software Foundation, Inc. + Copyright (C) 1996, 2002 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -27,17 +27,17 @@ netfs_S_io_identity (struct protid *cred, mach_msg_type_name_t *idtype, mach_port_t *fsys, mach_msg_type_name_t *fsystype, - int *fileno) + ino_t *fileno) { struct node *np; error_t err; - + if (!cred) return EOPNOTSUPP; - + np = cred->po->np; mutex_lock (&np->lock); - + err = netfs_validate_stat (np, cred->user); if (err) { @@ -55,7 +55,7 @@ netfs_S_io_identity (struct protid *cred, *fsys = netfs_fsys_identity; *fsystype = MACH_MSG_TYPE_MAKE_SEND; *fileno = np->nn_stat.st_ino; - + mutex_unlock (&np->lock); return 0; } |