aboutsummaryrefslogtreecommitdiff
path: root/util/ifdtool/ifdtool.h
diff options
context:
space:
mode:
authorBill XIE <persmule@gmail.com>2017-09-12 11:22:29 +0800
committerNico Huber <nico.h@gmx.de>2017-09-17 21:27:05 +0000
commitfa5f99430d09039e6a0de822ec365738d4bd178c (patch)
tree8b8cd9d18f9bf1a6220abef5a8a36dffc745238f /util/ifdtool/ifdtool.h
parentc863be7ba45f5babb965dd38ca779c38e334559d (diff)
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 <persmule@gmail.com> Reviewed-on: https://review.coreboot.org/21288 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/ifdtool/ifdtool.h')
-rw-r--r--util/ifdtool/ifdtool.h4
1 files changed, 2 insertions, 2 deletions
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;
};