diff options
author | Tom Cherry <tomcherry@google.com> | 2021-09-23 16:25:35 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2021-09-23 16:36:28 -0700 |
commit | adb2c3e451b86da78543703ac7a9480733af86f0 (patch) | |
tree | 5ad446041332cc8d68dfefa1e53387413c54757d | |
parent | 21742687972969207495cf7cbd7154610896a69f (diff) | |
download | libbootloader-adb2c3e451b86da78543703ac7a9480733af86f0.tar.gz |
Add const to addBootConfigParameters
This fixes a warning in uboot.
Test: build uboot and boot CF
Change-Id: I0dc32918cfedb9985c924a6fd1ab67897910ccb3
-rw-r--r-- | libxbc/libxbc.c | 2 | ||||
-rw-r--r-- | libxbc/libxbc.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libxbc/libxbc.c b/libxbc/libxbc.c index 6e47dee..d80ac11 100644 --- a/libxbc/libxbc.c +++ b/libxbc/libxbc.c @@ -53,7 +53,7 @@ static bool isTrailerPresent(uint64_t bootconfig_end_addr) { /* * Add a string of boot config parameters to memory appended by the trailer. */ -int32_t addBootConfigParameters(char* params, uint32_t params_size, +int32_t addBootConfigParameters(const char* params, uint32_t params_size, uint64_t bootconfig_start_addr, uint32_t bootconfig_size) { if (!params || !bootconfig_start_addr) { return -1; diff --git a/libxbc/libxbc.h b/libxbc/libxbc.h index 0bee548..7f5b311 100644 --- a/libxbc/libxbc.h +++ b/libxbc/libxbc.h @@ -35,7 +35,7 @@ * @param bootconfig_size size of the current bootconfig section in bytes. * @return number of bytes added to the boot config section. -1 for error. */ -int addBootConfigParameters(char *params, uint32_t params_size, +int addBootConfigParameters(const char *params, uint32_t params_size, uint64_t bootconfig_start_addr, uint32_t bootconfig_size); |