Wireshark-commits: [Wireshark-commits] rev 27760: /trunk/gtk/ /trunk/gtk/: mtp3_summary.c
Date: Tue, 17 Mar 2009 19:37:11 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=27760

User: guy
Date: 2009/03/17 12:37 PM

Log:
 Clean up indentation.
 
 Cast the num_msus and num_bytes values to double before dividing them by
 the appropriate divisor, to make sure the division is done in floating
 point; that's only necessary in one case (when dividing by an integer),
 but we do it in all cases for regularity.
 
 g_strdup_printf() g_mallocs the string; use g_strdup() for the
 zero-divisor case, so that the string is g_mallocated in all cases. 
 Note in a comment that they need to be freed.
 
 Make the array to which the strings in question are allocated arrays of
 "char *" rather than "const char *", to catch cases where a constant
 string is assigned to them.

Directory: /trunk/gtk/
  Changes    Path              Action
  +30 -27    mtp3_summary.c    Modified