diff --git a/include/aws/io/host_resolver.h b/include/aws/io/host_resolver.h index a9950cad7..711de18e2 100644 --- a/include/aws/io/host_resolver.h +++ b/include/aws/io/host_resolver.h @@ -183,7 +183,7 @@ AWS_IO_API int aws_default_dns_resolve( */ AWS_IO_API struct aws_host_resolver *aws_host_resolver_new_default( struct aws_allocator *allocator, - struct aws_host_resolver_default_options *options); + const struct aws_host_resolver_default_options *options); /** * Increments the reference count on the host resolver, allowing the caller to take a reference to it. diff --git a/source/host_resolver.c b/source/host_resolver.c index 8cd3c2ba6..70f1a51f7 100644 --- a/source/host_resolver.c +++ b/source/host_resolver.c @@ -1553,7 +1553,7 @@ static void s_aws_host_resolver_destroy(struct aws_host_resolver *resolver) { struct aws_host_resolver *aws_host_resolver_new_default( struct aws_allocator *allocator, - struct aws_host_resolver_default_options *options) { + const struct aws_host_resolver_default_options *options) { AWS_FATAL_ASSERT(options != NULL); /* NOTE: we don't use el_group yet, but we will in the future. Also, we