From 161d2334e863b26fc893c6bbf8f8cb8b811ce586 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Thu, 26 May 2016 14:41:02 -0700 Subject: util/cbfstool: Include commonlib/helpers.h in common.h This avoids re-declaring common macros like ARRAY_SIZE, MIN, MAX and ALIGN. Also removes the issues around including both files in any tool. Also, fix comparison error in various files by replacing int with size_t. Change-Id: I06c763e5dd1bec97e8335499468bbdb016eb28e5 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/14978 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- util/cbfstool/cbfs_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/cbfstool/cbfs_image.c') diff --git a/util/cbfstool/cbfs_image.c b/util/cbfstool/cbfs_image.c index 6ed26743cd..0e20c8057c 100644 --- a/util/cbfstool/cbfs_image.c +++ b/util/cbfstool/cbfs_image.c @@ -1251,7 +1251,7 @@ int cbfs_print_directory(struct cbfs_image *image) int cbfs_print_parseable_directory(struct cbfs_image *image) { - int i; + size_t i; const char *header[] = { "Name", "Offset", -- cgit v1.2.3