diff options
author | Robert Moore <Robert.Moore@intel.com> | 2013-04-23 14:04:40 -0700 |
---|---|---|
committer | Robert Moore <Robert.Moore@intel.com> | 2013-04-23 14:04:40 -0700 |
commit | 6b0b8eedff90b2789f6a7a627dbb3acfdd9d889d (patch) | |
tree | 3a533c7668b5783cfdcbc4f6bc9666cc3fc9a18e /source/tools/acpixtract | |
parent | c0e2cf9b53a9b0029877e5f1b1a48ac66d139085 (diff) | |
download | acpica-6b0b8eedff90b2789f6a7a627dbb3acfdd9d889d.tar.gz |
Standardize all switch() blocks.
After many years, different formatting for switch() has crept in.
This change makes every switch block identical. Chao Guan.
ACPICA bugzilla 997.
Diffstat (limited to 'source/tools/acpixtract')
-rw-r--r-- | source/tools/acpixtract/acpixtract.c | 1 | ||||
-rw-r--r-- | source/tools/acpixtract/axmain.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source/tools/acpixtract/acpixtract.c b/source/tools/acpixtract/acpixtract.c index 9314a64dd..d1ea782b5 100644 --- a/source/tools/acpixtract/acpixtract.c +++ b/source/tools/acpixtract/acpixtract.c @@ -678,6 +678,7 @@ AxExtractTables ( continue; default: + Status = -1; goto CleanupAndExit; } diff --git a/source/tools/acpixtract/axmain.c b/source/tools/acpixtract/axmain.c index b4ba87248..572e8bfa8 100644 --- a/source/tools/acpixtract/axmain.c +++ b/source/tools/acpixtract/axmain.c @@ -202,19 +202,23 @@ main ( while ((j = AcpiGetopt (argc, argv, "ahls:")) != EOF) switch (j) { case 'a': + AxAction = AX_EXTRACT_ALL; /* Extract all tables found */ break; case 'l': + AxAction = AX_LIST_ALL; /* List tables only, do not extract */ break; case 's': + AxAction = AX_EXTRACT_SIGNATURE; /* Extract only tables with this sig */ break; case 'h': default: + DisplayUsage (); return (0); } @@ -233,14 +237,17 @@ main ( switch (AxAction) { case AX_EXTRACT_ALL: + Status = AxExtractTables (Filename, NULL, AX_OPTIONAL_TABLES); break; case AX_LIST_ALL: + Status = AxListTables (Filename); break; case AX_EXTRACT_SIGNATURE: + Status = AxExtractTables (Filename, AcpiGbl_Optarg, AX_REQUIRED_TABLE); break; |