diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-07-24 19:01:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-07-24 19:01:28 +0000 |
commit | 554f62000190dead7a2d16e272138cc6e24ee57f (patch) | |
tree | ca1693ebf1407ac544cb272dbfe175ff1ff44a39 /epan/packet.h | |
parent | 72c01a62f828e6a19a46eaa25807114fc1cca840 (diff) | |
download | wireshark-554f62000190dead7a2d16e272138cc6e24ee57f.tar.gz wireshark-554f62000190dead7a2d16e272138cc6e24ee57f.tar.bz2 wireshark-554f62000190dead7a2d16e272138cc6e24ee57f.zip |
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 'epan/packet.h')
-rw-r--r-- | epan/packet.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/packet.h b/epan/packet.h index 05f6195eb7..04df470356 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -142,7 +142,7 @@ typedef void (*DATFunc) (gchar *table_name, ftenum_t selector_type, gpointer key, gpointer value, gpointer user_data); typedef void (*DATFunc_handle) (gchar *table_name, gpointer value, gpointer user_data); -typedef void (*DATFunc_table) (gchar *table_name, gchar *ui_name, +typedef void (*DATFunc_table) (gchar *table_name, const gchar *ui_name, gpointer user_data); /* Opaque structure - provides type checking but no access to components */ @@ -169,7 +169,7 @@ extern dissector_table_t register_dissector_table(const char *name, extern dissector_table_t find_dissector_table(const char *name); /* Get the UI name for a sub-dissector table, given its internal name */ -extern char *get_dissector_table_ui_name(const char *name); +extern const char *get_dissector_table_ui_name(const char *name); /* Get the field type for values of the selector for a dissector table, given the table's internal name */ @@ -284,7 +284,7 @@ extern void new_register_dissector(const char *name, new_dissector_t dissector, int proto); /* Get the short name of the protocol for a dissector handle. */ -extern char *dissector_handle_get_short_name(dissector_handle_t handle); +extern const char *dissector_handle_get_short_name(dissector_handle_t handle); /* Get the index of the protocol for a dissector handle. */ extern int dissector_handle_get_protocol_index(dissector_handle_t handle); |