[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH3/4] fully enable rpctrace to trace multitask programs.
From: |
Da Zheng |
Subject: |
[PATCH3/4] fully enable rpctrace to trace multitask programs. |
Date: |
Mon, 20 Jul 2009 19:42:20 +0800 |
User-agent: |
Thunderbird 2.0.0.22 (Macintosh/20090605) |
The third patch removes one of gcc's warnings.
Zheng Da
2009-07-20 Zheng Da <zhengda1936@gmail.com>
rpctrace.c (print_contents): Put the if statement in braces.
diff --git a/utils/rpctrace.c b/utils/rpctrace.c
index 148b0a4..6d4801e 100644
--- a/utils/rpctrace.c
+++ b/utils/rpctrace.c
@@ -634,10 +634,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);