aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-07-24 19:01:28 +0000
committerGuy Harris <guy@alum.mit.edu>2005-07-24 19:01:28 +0000
commit554f62000190dead7a2d16e272138cc6e24ee57f (patch)
treeca1693ebf1407ac544cb272dbfe175ff1ff44a39 /gtk/proto_dlg.c
parent72c01a62f828e6a19a46eaa25807114fc1cca840 (diff)
Constify to remove a bunch of warnings. Add some casts to squelch
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst warnings. In the TACACS dissector, clean up the variables used in option parsing to avoid some const-to-nonconst warnings. Clean up some white space. svn path=/trunk/; revision=15043
Diffstat (limited to 'gtk/proto_dlg.c')
-rw-r--r--gtk/proto_dlg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/proto_dlg.c b/gtk/proto_dlg.c
index 446eeeaf83..fae7399986 100644
--- a/gtk/proto_dlg.c
+++ b/gtk/proto_dlg.c
@@ -77,13 +77,13 @@ static GtkWidget *proto_w = NULL;
static GSList *protocol_list = NULL;
typedef struct protocol_data {
- char *name;
- char *abbrev;
- int hfinfo_index;
- gboolean enabled;
- gboolean was_enabled;
+ const char *name;
+ const char *abbrev;
+ int hfinfo_index;
+ gboolean enabled;
+ gboolean was_enabled;
#if GTK_MAJOR_VERSION < 2
- gint row;
+ gint row;
#else
GtkTreeIter iter;
#endif