diff options
author | Tom Cherry <tomcherry@google.com> | 2021-09-24 17:00:09 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-09-24 17:00:09 +0000 |
commit | 11e6976d8780e5c19acf6ef570052d10c6c4ae6b (patch) | |
tree | 5ad446041332cc8d68dfefa1e53387413c54757d | |
parent | b44eeefd365e023a96ea36682cc60b46827a47cc (diff) | |
parent | 0db6c06f06cec38eabb276e437f537658ce8d8e7 (diff) | |
download | libbootloader-android-s-qpr3-beta-1.tar.gz |
Add const to addBootConfigParameters am: adb2c3e451 am: ff16b1685e am: 0db6c06f06android-t-preview-2android-t-preview-1android-t-beta-3android-s-v2-beta-3android-s-qpr3-beta-1android-t-preview-1android-s-v2-beta-3android-s-qpr3-beta-1
Original change: https://android-review.googlesource.com/c/platform/bootable/libbootloader/+/1835128
Change-Id: I4bb928443fb9c61b20bcdc550f648ccde0b9e117
-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); |