From dce31ee790321923f6e413fe516399866d70c954 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 26 Mar 2002 18:59:31 +0000 Subject: 2002-03-23 James A. Morrison * console-run.c (open_console): Use ERR, not errno. --- daemons/console-run.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'daemons') 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; } -- cgit v1.2.3