aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-23 11:41:25 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-23 11:41:25 +0000
commit23ec4b07a3224f817388301f64a3bea1066d828b (patch)
tree88cde02c2a8b79acb9a58e94d44b2cc686e12e9e /epan/packet.c
parent8e1c6eea8800b9c6b9a52a7ee90a897fb6cda442 (diff)
More 'char*' -> 'const char*' changes to fix warnings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15015 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/packet.c b/epan/packet.c
index a012ef7c2d..f47faeae63 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -187,7 +187,7 @@ static GMemChunk *data_source_chunk = NULL;
* the tvbuff for the data source and its name.
*/
void
-add_new_data_source(packet_info *pinfo, tvbuff_t *tvb, char *name)
+add_new_data_source(packet_info *pinfo, tvbuff_t *tvb, const char *name)
{
data_source *src;
@@ -616,7 +616,7 @@ struct dtbl_entry {
struct dissector_table {
GHashTable *hash_table;
GSList *dissector_handles;
- char *ui_name;
+ const char *ui_name;
ftenum_t type;
int base;
};
@@ -906,7 +906,7 @@ find_string_dtbl_entry(dissector_table_t sub_dissectors, const gchar *pattern)
/* Add an entry to a string dissector table. */
void
-dissector_add_string(const char *name, gchar *pattern,
+dissector_add_string(const char *name, const gchar *pattern,
dissector_handle_t handle)
{
dissector_table_t sub_dissectors = find_dissector_table( name);
@@ -1369,7 +1369,7 @@ dissector_all_tables_foreach_table (DATFunc_table func,
}
dissector_table_t
-register_dissector_table(const char *name, char *ui_name, ftenum_t type,
+register_dissector_table(const char *name, const char *ui_name, ftenum_t type,
int base)
{
dissector_table_t sub_dissectors;