diff options
author | Tom Cherry <tomcherry@google.com> | 2021-09-24 17:50:36 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-09-24 17:50:36 +0000 |
commit | 8e604c4412e8753ea741595d5880297f192c3284 (patch) | |
tree | 5ad446041332cc8d68dfefa1e53387413c54757d | |
parent | ba27d27772ef037df351a5e2e730057c03715449 (diff) | |
parent | c885d8b87537edfd3ac39eb1fbb71b7937d9b302 (diff) | |
download | libbootloader-8e604c4412e8753ea741595d5880297f192c3284.tar.gz |
Add const to addBootConfigParameters am: adb2c3e451 am: ff16b1685e am: 0db6c06f06 am: 11e6976d87 am: c885d8b875
Original change: https://android-review.googlesource.com/c/platform/bootable/libbootloader/+/1835128
Change-Id: Ia518e0386b0b5f37bcd944085781fd58a88365b1
-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); |