diff --git a/include/aws/common/system_info.h b/include/aws/common/system_info.h index 65a93515c..3a111092e 100644 --- a/include/aws/common/system_info.h +++ b/include/aws/common/system_info.h @@ -33,10 +33,10 @@ void aws_system_environment_destroy(struct aws_system_environment *env); AWS_COMMON_API -struct aws_byte_cursor aws_system_environment_get_virtualization_vendor(struct aws_system_environment *env); +struct aws_byte_cursor aws_system_environment_get_virtualization_vendor(const struct aws_system_environment *env); AWS_COMMON_API -struct aws_byte_cursor aws_system_environment_get_virtualization_product_name(struct aws_system_environment *env); +struct aws_byte_cursor aws_system_environment_get_virtualization_product_name(const struct aws_system_environment *env); AWS_COMMON_API size_t aws_system_environment_get_processor_count(struct aws_system_environment *env); diff --git a/source/system_info.c b/source/system_info.c index e4b08a77e..5615463cb 100644 --- a/source/system_info.c +++ b/source/system_info.c @@ -28,15 +28,14 @@ void aws_system_environment_destroy(struct aws_system_environment *env) { aws_system_environment_destroy_platform_impl(env); aws_mem_release(env->allocator, env); } - } -struct aws_byte_cursor aws_system_environment_get_virtualization_vendor(struct aws_system_environment *env) { +struct aws_byte_cursor aws_system_environment_get_virtualization_vendor(const struct aws_system_environment *env) { struct aws_byte_cursor vendor_string = aws_byte_cursor_from_buf(&env->virtualization_vendor); return aws_byte_cursor_trim_pred(&vendor_string, aws_char_is_space); } -struct aws_byte_cursor aws_system_environment_get_virtualization_product_name(struct aws_system_environment *env) { +struct aws_byte_cursor aws_system_environment_get_virtualization_product_name(const struct aws_system_environment *env) { struct aws_byte_cursor product_name_str = aws_byte_cursor_from_buf(&env->product_name); return aws_byte_cursor_trim_pred(&product_name_str, aws_char_is_space); }