diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-03-27 11:13:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-03-27 11:13:03 +0000 |
commit | e85f05b0ec016d1b5bf9ef22d916fed2e711e814 (patch) | |
tree | 5c7ba3d8a6ca6cfef12e328b217f7c433b94982f /gtk/h225_counter.c | |
parent | 9925eb8ff3c5f569096b9a84bfad817f5acf4295 (diff) |
From Lars Roland: use the generic filter dialog for the SIP, HTTP, WSP,
and BOOTP taps.
Get rid of the "dlg" variable in some of those taps - it's never set, so
it's always null, and nothing useful is done with it if it's null.
Make static some variables and functions not used outside the source
file in which they're defined.
svn path=/trunk/; revision=10500
Diffstat (limited to 'gtk/h225_counter.c')
-rw-r--r-- | gtk/h225_counter.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk/h225_counter.c b/gtk/h225_counter.c index ea2dddd2e8..24365ac19b 100644 --- a/gtk/h225_counter.c +++ b/gtk/h225_counter.c @@ -2,7 +2,7 @@ * h225 message counter for ethereal * Copyright 2003 Lars Roland * - * $Id: h225_counter.c,v 1.16 2004/03/13 14:07:13 ulfl Exp $ + * $Id: h225_counter.c,v 1.17 2004/03/27 11:13:02 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -56,9 +56,14 @@ extern GtkWidget *main_display_filter_widget; -void gtk_h225counter_init(char *optarg); +static void gtk_h225counter_init(char *optarg); -tap_dfilter_dlg h225_counter_dlg = {"H.225 Messages and Message Reasons", "h225,counter", gtk_h225counter_init, -1}; +static tap_dfilter_dlg h225_counter_dlg = { + "H.225 Messages and Message Reasons", + "h225,counter", + gtk_h225counter_init, + -1 +}; /* following values represent the size of their valuestring arrays */ @@ -497,7 +502,7 @@ win_destroy_cb(GtkWindow *win _U_, gpointer data) static gchar *titles[]={"Message Type or Reason", "Count" }; -void +static void gtk_h225counter_init(char *optarg) { h225counter_t *hs; |