From 4658412a61ad5749db92a8d1e0717cb5e76ada1c Mon Sep 17 00:00:00 2001 From: Dmitriy Musatkin <63878209+DmitriyMusatkin@users.noreply.github.com> Date: Fri, 2 Aug 2024 15:36:14 -0700 Subject: [PATCH] lets make string array const input (#44) --- include/aws/sdkutils/endpoints_rule_engine.h | 2 +- source/endpoints_rule_engine.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/aws/sdkutils/endpoints_rule_engine.h b/include/aws/sdkutils/endpoints_rule_engine.h index 65710ab..ac9416d 100644 --- a/include/aws/sdkutils/endpoints_rule_engine.h +++ b/include/aws/sdkutils/endpoints_rule_engine.h @@ -244,7 +244,7 @@ AWS_SDKUTILS_API int aws_endpoints_request_context_add_string_array( struct aws_allocator *allocator, struct aws_endpoints_request_context *context, struct aws_byte_cursor name, - struct aws_byte_cursor *value_array, + const struct aws_byte_cursor *value_array, size_t len); /* diff --git a/source/endpoints_rule_engine.c b/source/endpoints_rule_engine.c index 05b4b42..3096fd3 100644 --- a/source/endpoints_rule_engine.c +++ b/source/endpoints_rule_engine.c @@ -746,7 +746,7 @@ int aws_endpoints_request_context_add_string_array( struct aws_allocator *allocator, struct aws_endpoints_request_context *context, struct aws_byte_cursor name, - struct aws_byte_cursor *values, + const struct aws_byte_cursor *values, size_t len) { struct aws_endpoints_scope_value *val = aws_endpoints_scope_value_new(allocator, name);