mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 10:31:02 +00:00
gsctool: harden the APIs marking pointers const
This is just a tweak marking pointers to the vendor command payloads as const, as the command payloads are not supposed to be modified by the communication layers. BRANCH=none BUG=none TEST=make buildall -j; make -c ./extra/usb_updater Change-Id: I68f15e8c77dc892173ff0241072128d960712a80 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/722114 Reviewed-by: Andrey Pronin <apronin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
465eaf4d7e
commit
e63e0515e4
@@ -1139,7 +1139,7 @@ static void setup_connection(struct transfer_descriptor *td)
|
||||
* if it is - of what maximum size.
|
||||
*/
|
||||
static int ext_cmd_over_usb(struct usb_endpoint *uep, uint16_t subcommand,
|
||||
void *cmd_body, size_t body_size,
|
||||
const void *cmd_body, size_t body_size,
|
||||
void *resp, size_t *resp_size)
|
||||
{
|
||||
struct update_frame_header *ufh;
|
||||
@@ -1221,7 +1221,7 @@ static int transfer_image(struct transfer_descriptor *td,
|
||||
|
||||
static uint32_t send_vendor_command(struct transfer_descriptor *td,
|
||||
uint16_t subcommand,
|
||||
void *command_body,
|
||||
const void *command_body,
|
||||
size_t command_body_size,
|
||||
void *response,
|
||||
size_t *response_size)
|
||||
|
||||
Reference in New Issue
Block a user