Skip to content

Commit ebfad1a

Browse files
authored
Make proxy options const (#357)
1 parent ba09160 commit ebfad1a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/aws/http/proxy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ void aws_http_proxy_options_init_from_config(
548548
*/
549549
AWS_HTTP_API int aws_http_proxy_new_socket_channel(
550550
struct aws_socket_channel_bootstrap_options *channel_options,
551-
struct aws_http_proxy_options *proxy_options);
551+
const struct aws_http_proxy_options *proxy_options);
552552

553553
AWS_EXTERN_C_END
554554

source/proxy_connection.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,9 +1530,7 @@ static void s_http_proxied_socket_channel_shutdown(
15301530

15311531
int aws_http_proxy_new_socket_channel(
15321532
struct aws_socket_channel_bootstrap_options *channel_options,
1533-
struct aws_http_proxy_options *proxy_options) {
1534-
(void)channel_options;
1535-
(void)proxy_options;
1533+
const struct aws_http_proxy_options *proxy_options) {
15361534

15371535
AWS_FATAL_ASSERT(channel_options != NULL && channel_options->bootstrap != NULL);
15381536
AWS_FATAL_ASSERT(proxy_options != NULL);

0 commit comments

Comments
 (0)