diff options
author | Da Zheng <zhengda1936@gmail.com> | 2009-07-20 19:42:20 +0800 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-27 01:44:35 +0200 |
commit | 637003fb8c9ed52a6340d6f1445a37c2e33fdd94 (patch) | |
tree | b5b1187b38cbf33fe1ba8ecf78e2709a3a86a130 | |
parent | c083a705271a7d5b28e53047c1a57b8c24c072a9 (diff) |
Fix a gcc warning.
* utils/rpctrace.c (print_contents): Put the if statement in braces.
-rw-r--r-- | utils/rpctrace.c | 10 |
1 files changed, 6 insertions, 4 deletions
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); |