From 637003fb8c9ed52a6340d6f1445a37c2e33fdd94 Mon Sep 17 00:00:00 2001 From: Da Zheng Date: Mon, 20 Jul 2009 19:42:20 +0800 Subject: Fix a gcc warning. * utils/rpctrace.c (print_contents): Put the if statement in braces. --- utils/rpctrace.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'utils/rpctrace.c') diff --git a/utils/rpctrace.c b/utils/rpctrace.c index 51824490..e75bd0df 100644 --- a/utils/rpctrace.c +++ b/utils/rpctrace.c @@ -632,10 +632,12 @@ print_contents (mach_msg_header_t *inp, type->msgt_name = name; } else if (nelt > 0 && newtypes[0] != name) - if (type->msgt_longform) - lt->msgtl_name = newtypes[0]; - else - type->msgt_name = newtypes[0]; + { + if (type->msgt_longform) + lt->msgtl_name = newtypes[0]; + else + type->msgt_name = newtypes[0]; + } } else print_data (name, data, nelt, eltsize); -- cgit v1.2.3