aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-04-23 10:59:26 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-04-23 10:59:26 +0000
commit1cb2713ca4f49017083a4854068a7bd5027d37cc (patch)
treef690697725617a640820ade652da4cf766bdc863 /epan/packet.c
parentedb41d122c7688f977051b18a144a7cc6ffd1b93 (diff)
Add some GCC warnings to the standard set, and add some others to the
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21526 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 0c2d81c467..00573ed53f 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -1170,7 +1170,7 @@ typedef struct dissector_foreach_info {
gpointer caller_data;
DATFunc caller_func;
GHFunc next_func;
- gchar *table_name;
+ const gchar *table_name;
ftenum_t selector_type;
} dissector_foreach_info_t;
@@ -1244,7 +1244,7 @@ dissector_all_tables_foreach (DATFunc func,
* on each entry.
*/
void
-dissector_table_foreach (char *name,
+dissector_table_foreach (const char *name,
DATFunc func,
gpointer user_data)
{
@@ -1321,7 +1321,7 @@ dissector_all_tables_foreach_changed (DATFunc func,
* any entry that has been changed from its original state.
*/
void
-dissector_table_foreach_changed (char *name,
+dissector_table_foreach_changed (const char *name,
DATFunc func,
gpointer user_data)
{