diff options
author | Bill Richardson <wfrichar@chromium.org> | 2012-05-02 23:30:16 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-05-03 17:38:57 -0700 |
commit | f47291926afce3235421f73811a04324195f3e13 (patch) | |
tree | 200ad9edd254c2190a4f1a7b4eeaa4e62447c132 /cgpt | |
parent | 23429d3d782f7506fb4747356974294cce08ac47 (diff) | |
download | vboot-f47291926afce3235421f73811a04324195f3e13.tar.gz |
Require -Wall -Werror for everything.
BUG=none
TEST=none
Change-Id: Ib9781238274285f73d00d8fca4ecda28fc2c6678
Reviewed-on: https://gerrit.chromium.org/gerrit/21748
Commit-Ready: Bill Richardson <wfrichar@chromium.org>
Tested-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'cgpt')
-rw-r--r-- | cgpt/cgpt_boot.c | 6 | ||||
-rw-r--r-- | cgpt/cgpt_find.c | 6 | ||||
-rw-r--r-- | cgpt/cgpt_show.c | 21 | ||||
-rw-r--r-- | cgpt/cmd_add.c | 4 | ||||
-rw-r--r-- | cgpt/cmd_boot.c | 2 | ||||
-rw-r--r-- | cgpt/cmd_create.c | 2 | ||||
-rw-r--r-- | cgpt/cmd_prioritize.c | 3 | ||||
-rw-r--r-- | cgpt/cmd_repair.c | 2 | ||||
-rw-r--r-- | cgpt/cmd_show.c | 2 |
9 files changed, 6 insertions, 42 deletions
diff --git a/cgpt/cgpt_boot.c b/cgpt/cgpt_boot.c index f8e712d6..d3d207a7 100644 --- a/cgpt/cgpt_boot.c +++ b/cgpt/cgpt_boot.c @@ -2,15 +2,15 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "cgpt.h" - #include <errno.h> #include <fcntl.h> #include <string.h> +#include <unistd.h> +#include "cgpt.h" +#include "cgpt_params.h" #include "cgptlib_internal.h" #include "endian.h" -#include "cgpt_params.h" int cgpt_get_boot_partition_number(CgptBootParams *params) { diff --git a/cgpt/cgpt_find.c b/cgpt/cgpt_find.c index 345c8310..7ca158ac 100644 --- a/cgpt/cgpt_find.c +++ b/cgpt/cgpt_find.c @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "cgpt.h" - #include <string.h> #include <sys/stat.h> #include <sys/types.h> +#include <unistd.h> -#include "cgptlib_internal.h" +#include "cgpt.h" #include "cgpt_params.h" +#include "cgptlib_internal.h" #define BUFSIZE 1024 // FIXME: currently we only support 512-byte sectors. diff --git a/cgpt/cgpt_show.c b/cgpt/cgpt_show.c index f0022a9d..47599f42 100644 --- a/cgpt/cgpt_show.c +++ b/cgpt/cgpt_show.c @@ -11,27 +11,6 @@ #include "cgptlib_internal.h" #include "cgpt_params.h" -static void Usage(void) { - printf("\nUsage: %s show [OPTIONS] DRIVE\n\n" - "Display the GPT table\n\n" - "Options:\n" - " -n Numeric output only\n" - " -v Verbose output\n" - " -q Quick output\n" - " -i NUM Show specified partition only - pick one of:\n" - " -b beginning sector\n" - " -s partition size\n" - " -t type guid\n" - " -u unique guid\n" - " -l label\n" - " -S Successful flag\n" - " -T Tries flag\n" - " -P Priority flag\n" - " -A raw 64-bit attribute value\n" - "\n", progname); -} - - /* Generate output like: * * [AB-CD-EF-01] for group = 1 diff --git a/cgpt/cmd_add.c b/cgpt/cmd_add.c index 62b15996..3a211cd3 100644 --- a/cgpt/cmd_add.c +++ b/cgpt/cmd_add.c @@ -36,10 +36,6 @@ int cmd_add(int argc, char *argv[]) { CgptAddParams params; memset(¶ms, 0, sizeof(params)); - int gpt_retval; - GptEntry *entry; - uint32_t index; - int c; int errorcnt = 0; char *e = 0; diff --git a/cgpt/cmd_boot.c b/cgpt/cmd_boot.c index fc5c36e7..05ba6e93 100644 --- a/cgpt/cmd_boot.c +++ b/cgpt/cmd_boot.c @@ -24,8 +24,6 @@ static void Usage(void) int cmd_boot(int argc, char *argv[]) { - struct drive drive; - CgptBootParams params; memset(¶ms, 0, sizeof(params)); diff --git a/cgpt/cmd_create.c b/cgpt/cmd_create.c index f982be8a..cf7b80ce 100644 --- a/cgpt/cmd_create.c +++ b/cgpt/cmd_create.c @@ -19,8 +19,6 @@ static void Usage(void) } int cmd_create(int argc, char *argv[]) { - struct drive drive; - CgptCreateParams params; memset(¶ms, 0, sizeof(params)); diff --git a/cgpt/cmd_prioritize.c b/cgpt/cmd_prioritize.c index eca72ac8..b81bda0c 100644 --- a/cgpt/cmd_prioritize.c +++ b/cgpt/cmd_prioritize.c @@ -32,12 +32,9 @@ static void Usage(void) } int cmd_prioritize(int argc, char *argv[]) { - struct drive drive; - CgptPrioritizeParams params; memset(¶ms, 0, sizeof(params)); - int c; int errorcnt = 0; char *e = 0; diff --git a/cgpt/cmd_repair.c b/cgpt/cmd_repair.c index 493b22b6..4f1bc026 100644 --- a/cgpt/cmd_repair.c +++ b/cgpt/cmd_repair.c @@ -19,8 +19,6 @@ static void Usage(void) } int cmd_repair(int argc, char *argv[]) { - struct drive drive; - CgptRepairParams params; memset(¶ms, 0, sizeof(params)); diff --git a/cgpt/cmd_show.c b/cgpt/cmd_show.c index 3f22751a..6443931f 100644 --- a/cgpt/cmd_show.c +++ b/cgpt/cmd_show.c @@ -32,8 +32,6 @@ static void Usage(void) } int cmd_show(int argc, char *argv[]) { - struct drive drive; - CgptShowParams params; memset(¶ms, 0, sizeof(params)); |