From 2050c9bb7c3fe0f1b52cb87a1709cd7736eb76c4 Mon Sep 17 00:00:00 2001 From: Daniel Reinhold Date: Wed, 23 Oct 2002 13:32:07 +0000 Subject: [PATCH] put call to exit() back in, now that it's implemented git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1614 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/apps/cpuinfo/main.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/kernel/apps/cpuinfo/main.c b/src/kernel/apps/cpuinfo/main.c index bfa5bcf588..b1edd67de4 100644 --- a/src/kernel/apps/cpuinfo/main.c +++ b/src/kernel/apps/cpuinfo/main.c @@ -1,6 +1,6 @@ #include #include -//#include -- when exit() is implemented +#include #include #include "cpuinfo.h" @@ -21,7 +21,7 @@ usage() " -f supported processor features\n" " -t TLB and cache info\n" " -d dump registers from CPUID calls\n"); - //exit(0); + exit(0); } @@ -32,7 +32,7 @@ getoption(char *optstr) || (strlen(optstr) > 2) || (strchr("iftd", optstr[1]) == NULL)) // invalid option - return 0; + usage(); return optstr[1]; } @@ -57,11 +57,8 @@ main(int argc, char *argv[]) if (argc == 2) option = getoption(argv[1]); - - if (option == 0) { + else usage(); - return 0; - } // get initial info (max_level and vendor_tag) get_cpuid(info, 0, 0);