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>
This commit is contained in:
Bill XIE
2017-09-12 11:22:29 +08:00
committed by Nico Huber
parent c863be7ba4
commit fa5f99430d
2 changed files with 74 additions and 70 deletions

View File

@ -140,6 +140,6 @@ typedef struct {
} region_t;
struct region_name {
char *pretty;
char *terse;
const char *pretty;
const char *terse;
};