From 18a6968b17b27201f5e4634c6e703dc1037ea1dc Mon Sep 17 00:00:00 2001
From: "Michael I. Bushnell" <mib@gnu.org>
Date: Fri, 4 Feb 1994 19:10:51 +0000
Subject: Formerly file-getlinknode.c.~3~

---
 libdiskfs/file-getlinknode.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'libdiskfs')

diff --git a/libdiskfs/file-getlinknode.c b/libdiskfs/file-getlinknode.c
index 7d8bd352..8c10f62b 100644
--- a/libdiskfs/file-getlinknode.c
+++ b/libdiskfs/file-getlinknode.c
@@ -24,19 +24,19 @@ diskfs_S_file_getlinknode (struct protid *cred,
 			   file_t *port,
 			   mach_msg_type_name_t *portpoly)
 {
-  struct inode *np;
+  struct node *np;
 
   if (!cred)
     return EOPNOTSUPP;
   
   np = cred->po->np;
-  if (np->i_number == diskfs_root_node_number)
+  if (np == diskfs_root_node)
     return EBUSY;
   
   /* XXX -- this is wrong; port management code for protids
      only allows a port to be given out once; we need to
      send a new protid unfortunately. */
-  *port = cred->fspt.pi.port;
+  *port = cred->pi.port;
   *portpoly = MACH_MSG_TYPE_MAKE_SEND;
   return 0;
 }
-- 
cgit v1.2.3