summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2002-03-26 18:59:31 +0000
committerNeal H. Walfield <neal@gnu.org>2002-03-26 18:59:31 +0000
commitdce31ee790321923f6e413fe516399866d70c954 (patch)
tree830ee80260b21fcaffd326d586da31203f6f0fbd /daemons
parent21542654a791a7a99b29c0c3392daf432923fff0 (diff)
2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>
* console-run.c (open_console): Use ERR, not errno.
Diffstat (limited to 'daemons')
-rw-r--r--daemons/console-run.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/daemons/console-run.c b/daemons/console-run.c
index 0fc19bb4..3ab2629a 100644
--- a/daemons/console-run.c
+++ b/daemons/console-run.c
@@ -141,21 +141,21 @@ open_console (char **namep)
termname = terminal + strlen (terminal) + 1; /* first arg is name */
/* The callback to start_translator opens TERM as a side effect. */
- errno =
+ err =
fshelp_start_translator (open_node, NULL, terminal, terminal,
argz_len, 3000, &control);
- if (errno)
+ if (err)
{
- error (0, errno, "%s", terminal);
+ error (0, err, "%s", terminal);
continue;
}
- errno = file_set_translator (term, 0, FS_TRANS_SET, 0, 0, 0,
+ err = file_set_translator (term, 0, FS_TRANS_SET, 0, 0, 0,
control, MACH_MSG_TYPE_COPY_SEND);
mach_port_deallocate (mach_task_self (), control);
- if (errno)
+ if (err)
{
- error (0, errno, "%s", termname);
+ error (0, err, "%s", termname);
continue;
}
mach_port_deallocate (mach_task_self (), term);
@@ -167,10 +167,10 @@ open_console (char **namep)
error (0, errno, "%s", termname);
continue;
}
- errno = io_stat (term, &st);
- if (errno)
+ err = io_stat (term, &st);
+ if (err)
{
- error (0, errno, "%s", termname);
+ error (0, err, "%s", termname);
term = MACH_PORT_NULL;
continue;
}