summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDa Zheng <zhengda1936@gmail.com>2009-07-20 19:42:20 +0800
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-27 01:44:35 +0200
commit637003fb8c9ed52a6340d6f1445a37c2e33fdd94 (patch)
treeb5b1187b38cbf33fe1ba8ecf78e2709a3a86a130 /utils
parentc083a705271a7d5b28e53047c1a57b8c24c072a9 (diff)
Fix a gcc warning.
* utils/rpctrace.c (print_contents): Put the if statement in braces.
Diffstat (limited to 'utils')
-rw-r--r--utils/rpctrace.c10
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);