forked from osmocom/wireshark
Use consistent indentation and formatting style;
Fix a few typos; Fix long line. svn path=/trunk/; revision=44902
This commit is contained in:
parent
ebda6f06b7
commit
dd7a2708be
1 changed files with 134 additions and 132 deletions
|
@ -196,6 +196,7 @@ sip_init_hash(sipstat_t *sp)
|
|||
{
|
||||
gint *key = g_malloc (sizeof(gint));
|
||||
sip_response_code_t *sc = g_malloc (sizeof(sip_response_code_t));
|
||||
|
||||
*key = vals_status_code[i].value;
|
||||
sc->packets = 0;
|
||||
sc->response_code = *key;
|
||||
|
@ -524,18 +525,19 @@ sipstat_draw(void *psp)
|
|||
|
||||
/* Set resend count label */
|
||||
g_snprintf(string_buff, sizeof(string_buff),
|
||||
"Average setup time %d ms\n Min %d ms\n Max %d ms", sp->average_setup_time, sp->min_setup_time, sp->max_setup_time);
|
||||
"Average setup time %d ms\n Min %d ms\n Max %d ms",
|
||||
sp->average_setup_time, sp->min_setup_time, sp->max_setup_time);
|
||||
gtk_label_set_text(GTK_LABEL(sp->average_setup_time_label), string_buff);
|
||||
|
||||
gtk_widget_show_all(sp->win);
|
||||
}
|
||||
|
||||
|
||||
/* since the gtk2 implementation of tap is multithreaded we must protect
|
||||
/* Since the gtk2 implementation of tap is multithreaded we must protect
|
||||
* remove_tap_listener() from modifying the list while draw_tap_listener()
|
||||
* is running. the other protected block is in main.c
|
||||
* is running. The other protected block is in main.c
|
||||
*
|
||||
* there should not be any other critical regions in gtk2
|
||||
* There should not be any other critical regions in gtk2
|
||||
*/
|
||||
/* When window is destroyed, clean up */
|
||||
static void
|
||||
|
@ -561,9 +563,9 @@ static void
|
|||
gtk_sipstat_init(const char *optarg, void *userdata _U_)
|
||||
{
|
||||
sipstat_t *sp;
|
||||
const char *filter = NULL;
|
||||
const char *filter;
|
||||
GString *error_string;
|
||||
char *title = NULL;
|
||||
char *title;
|
||||
GtkWidget *main_vb, *separator,
|
||||
*informational_fr, *success_fr, *redirection_fr,
|
||||
*client_errors_fr, *server_errors_fr, *global_failures_fr,
|
||||
|
|
Loading…
Reference in a new issue