summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2002-03-10 03:05:08 +0000
committerNeal H. Walfield <neal@gnu.org>2002-03-10 03:05:08 +0000
commit4daeb9f01f5a3117a93b49d3a4153322c9d7fd3f (patch)
tree9ed1da360453322b6123191288ad6e084b51f571 /libnetfs
parent782610bba14cd8006606276efdfe93310fc624ae (diff)
2002-03-9 James A. Morrison <ja2morri@uwaterloo.ca>
* init-startup (netfs_startup): Use err, not errno.
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/init-startup.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libnetfs/init-startup.c b/libnetfs/init-startup.c
index 69017285..2e0f43a8 100644
--- a/libnetfs/init-startup.c
+++ b/libnetfs/init-startup.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1996,97,2000,02 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -26,24 +26,25 @@
mach_port_t
netfs_startup (mach_port_t bootstrap, int flags)
{
+ error_t err;
mach_port_t realnode, right;
struct port_info *newpi;
if (bootstrap == MACH_PORT_NULL)
error (10, 0, "Must be started as a translator");
- errno = ports_create_port (netfs_control_class, netfs_port_bucket,
+ err = ports_create_port (netfs_control_class, netfs_port_bucket,
sizeof (struct port_info), &newpi);
- if (!errno)
+ if (!err)
{
right = ports_get_send_right (newpi);
- errno = fsys_startup (bootstrap, flags, right, MACH_MSG_TYPE_COPY_SEND,
+ err = fsys_startup (bootstrap, flags, right, MACH_MSG_TYPE_COPY_SEND,
&realnode);
mach_port_deallocate (mach_task_self (), right);
ports_port_deref (newpi);
}
- if (errno)
- error (11, errno, "Translator startup failure: fsys_startup");
+ if (err)
+ error (11, err, "Translator startup failure: fsys_startup");
mach_port_deallocate (mach_task_self (), bootstrap);