summaryrefslogtreecommitdiff
path: root/console
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2002-03-26 18:57:43 +0000
committerNeal H. Walfield <neal@gnu.org>2002-03-26 18:57:43 +0000
commit21542654a791a7a99b29c0c3392daf432923fff0 (patch)
tree5322230318242a62c7005a2213b05276d499436e /console
parent06ea40d4aa946136fd6cef68942e1183751fadb8 (diff)
2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>
* main.c (main): Use error, not fprintf and exit.
Diffstat (limited to 'console')
-rw-r--r--console/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/console/main.c b/console/main.c
index 8f34fc3d..cd28bc96 100644
--- a/console/main.c
+++ b/console/main.c
@@ -129,10 +129,7 @@ main (int argc, char **argv)
task_get_bootstrap_port (mach_task_self (), &bootstrap);
if (bootstrap == MACH_PORT_NULL)
- {
- fprintf (stderr, "Must be started as a translator\n");
- exit (1);
- }
+ error (1, 0, "Must be started as a translator");
/* Set our node */
err = trivfs_startup (bootstrap, 0, 0, 0, 0, 0, &fsys);