From f111d941acbb2dcba6aeae48de15dac2530a09e1 Mon Sep 17 00:00:00 2001 From: David Riley Date: Thu, 5 Feb 2015 19:22:49 -0800 Subject: Changes to compile signing tools on darwin The following works from a Mac with these changes: make Q= ARCH=arm HAVE_MACOS=1 `pwd`/build/futility/futility Only vbutil_keyblock and vbutil_kernel have been exercised. BUG=none TEST='make Q= ARCH=arm HAVE_MACOS=1 `pwd`/build/futility/futility' BRANCH=none Signed-off-by: David Riley Change-Id: Ie69cfee0c650d4ff96be6322083a2fea1543ee39 Reviewed-on: https://chromium-review.googlesource.com/246773 Reviewed-by: Bill Richardson Tested-by: David Riley Commit-Queue: David Riley Reviewed-on: https://chromium-review.googlesource.com/252208 Commit-Queue: Vadim Bendebury Tested-by: Vadim Bendebury Reviewed-by: Vadim Bendebury --- futility/traversal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'futility/traversal.c') diff --git a/futility/traversal.c b/futility/traversal.c index 3c3b4224..8421b253 100644 --- a/futility/traversal.c +++ b/futility/traversal.c @@ -164,7 +164,7 @@ static int invoke_callback(struct futil_traverse_state_s *state, __func__, name, state->op, futil_cb_component_str[c], offset, len, buf); - if (c < 0 || c >= NUM_CB_COMPONENTS) { + if ((int) c < 0 || c >= NUM_CB_COMPONENTS) { fprintf(stderr, "Invalid component %d\n", c); return 1; } @@ -203,7 +203,7 @@ int futil_traverse(uint8_t *buf, uint32_t len, const struct bios_area_s *area; int retval = 0; - if (state->op < 0 || state->op >= NUM_FUTIL_OPS) { + if ((int) state->op < 0 || state->op >= NUM_FUTIL_OPS) { fprintf(stderr, "Invalid op %d\n", state->op); return 1; } -- cgit v1.2.1