From fa5f99430d09039e6a0de822ec365738d4bd178c Mon Sep 17 00:00:00 2001 From: Bill XIE Date: Tue, 12 Sep 2017 11:22:29 +0800 Subject: ifdtool: Const-correct and redesign some functions Const-correct some functions which do not write back, and use pointers to access existing region_t variables. The last changeset is dismantled this time. This commit is only focused on const-correctness. Change-Id: I6d05418c8b32fa31dcd038a3e56f9aefe13fa9c4 Signed-off-by: Bill XIE Reviewed-on: https://review.coreboot.org/21288 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- util/ifdtool/ifdtool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/ifdtool/ifdtool.h') diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h index fe98d6a856..1ebe629654 100644 --- a/util/ifdtool/ifdtool.h +++ b/util/ifdtool/ifdtool.h @@ -140,6 +140,6 @@ typedef struct { } region_t; struct region_name { - char *pretty; - char *terse; + const char *pretty; + const char *terse; }; -- cgit v1.2.3