The third patch removes one of gcc's warnings.

Zheng Da


2009-07-20  Zheng Da  <zhengda1...@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);



Reply via email to