From 6400f61025d3f60019a593200bb723abc0dd86cf Mon Sep 17 00:00:00 2001 From: hpa Date: Wed, 5 Jan 2005 00:11:13 +0000 Subject: Spend little over half a kilobyte printing an error message at the end. --- com32/modules/ethersel.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'com32/modules/ethersel.c') diff --git a/com32/modules/ethersel.c b/com32/modules/ethersel.c index 51ad2c69..2a2bf186 100644 --- a/com32/modules/ethersel.c +++ b/com32/modules/ethersel.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -242,6 +243,8 @@ int main(int argc, char *argv[]) { struct match *list, *match; + openconsole(&dev_null_r, &dev_stdcon_w); + list = parse_config(argc < 2 ? NULL : argv[1]); match = pciscan(list); @@ -249,8 +252,8 @@ int main(int argc, char *argv[]) if ( match ) execute(match->filename); - fputs("Error: no recognized network card found\n", stderr); - + /* On error, return to the command line */ + fputs("Error: no recognized network card found!\n", stderr); return 1; } -- cgit v1.2.1