From 3295dbbe1cacfa59162c633aadd10db7614a98f4 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 9 May 2023 00:31:09 +0300 Subject: utils: Port to x86_64 Message-Id: <20230508213136.608575-15-bugaevc@gmail.com> --- utils/rpctrace.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils/rpctrace.c') diff --git a/utils/rpctrace.c b/utils/rpctrace.c index f4d103e8..589ce8f8 100644 --- a/utils/rpctrace.c +++ b/utils/rpctrace.c @@ -961,7 +961,7 @@ wrap_all_threads (task_t task) struct sender_info *thread_send_wrapper; struct receiver_info *thread_receiver_info; thread_t *threads; - size_t nthreads; + mach_msg_type_number_t nthreads; error_t err; err = task_threads (task, &threads, &nthreads); @@ -1134,7 +1134,7 @@ trace_and_forward (mach_msg_header_t *inp, mach_msg_header_t *outp) MACH_MSGH_BITS_REMOTE (inp->msgh_bits), is_notification (inp)? MACH_MSG_TYPE_MOVE_SEND_ONCE: info->type) | MACH_MSGH_BITS_OTHER (inp->msgh_bits); - inp->msgh_local_port = ports_payload_get_name ((unsigned int) info); + inp->msgh_local_port = ports_payload_get_name ((uintptr_t) info); } } else @@ -1538,7 +1538,7 @@ print_data (mach_msg_type_name_t type, /* We encountered a non-printable character. Print anything that has not been printed so far. */ if (p < q) - fprintf (ostream, "%.*s", q - p, p); + fprintf (ostream, "%.*s", (int) (q - p), p); char c = escape_sequences[*((const unsigned char *) q)]; if (c) @@ -1552,7 +1552,7 @@ print_data (mach_msg_type_name_t type, /* Print anything that has not been printed so far. */ if (p < q) - fprintf (ostream, "%.*s", q - p, p); + fprintf (ostream, "%.*s", (int) (q - p), p); fprintf (ostream, "\""); return; -- cgit v1.2.3