From 0de5c9a03fbeb70e04ab2dfadb6aceda8bf1facc Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 3 Nov 2016 14:17:41 -0700 Subject: [PATCH] Use the new mx_object_get_info parameter ordering BUG= R=zra@google.com, abarth@google.com Review URL: https://codereview.chromium.org/2475083002 . --- runtime/bin/run_vm_tests_fuchsia.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/runtime/bin/run_vm_tests_fuchsia.cc b/runtime/bin/run_vm_tests_fuchsia.cc index e9b7121f32b..3c724220118 100644 --- a/runtime/bin/run_vm_tests_fuchsia.cc +++ b/runtime/bin/run_vm_tests_fuchsia.cc @@ -269,9 +269,11 @@ static int run_test(mx_handle_t binary_vmo, const char* test_name, RETURN_IF_ERROR(r); mx_info_process_t proc_info; - mx_ssize_t info_size = mx_object_get_info( - p, MX_INFO_PROCESS, sizeof(proc_info.rec), &proc_info, sizeof(proc_info)); - RETURN_IF_ERROR(info_size); + mx_size_t info_size; + mx_status_t status = + mx_object_get_info(p, MX_INFO_PROCESS, sizeof(proc_info.rec), + &proc_info, sizeof(proc_info), &info_size); + RETURN_IF_ERROR(status); r = mx_handle_close(p); RETURN_IF_ERROR(r);