From 6b0b8eedff90b2789f6a7a627dbb3acfdd9d889d Mon Sep 17 00:00:00 2001 From: Robert Moore Date: Tue, 23 Apr 2013 14:04:40 -0700 Subject: 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. --- source/tools/acpixtract/acpixtract.c | 1 + source/tools/acpixtract/axmain.c | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'source/tools/acpixtract') 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; -- cgit v1.2.1