aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-04-02 14:37:49 +0000
committerBill Meier <wmeier@newsguy.com>2010-04-02 14:37:49 +0000
commit049f9eac856bba91850332e90033be56dfa87f37 (patch)
tree1de2f031494726578dfd8df5ad324ca9546a0e1a /epan/epan.c
parent9c05bc3bc545ec1726561f7f33e493f81e6e59fc (diff)
From Yaniv Kaul: constify parameters
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 svn path=/trunk/; revision=32360
Diffstat (limited to 'epan/epan.c')
-rw-r--r--epan/epan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/epan.c b/epan/epan.c
index 176e83ecc5..7b045c650c 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -150,7 +150,7 @@ epan_circuit_cleanup(void)
}
epan_dissect_t*
-epan_dissect_init(epan_dissect_t *edt, gboolean create_proto_tree, gboolean proto_tree_visible)
+epan_dissect_init(epan_dissect_t *edt, const gboolean create_proto_tree, const gboolean proto_tree_visible)
{
g_assert(edt);
@@ -166,7 +166,7 @@ epan_dissect_init(epan_dissect_t *edt, gboolean create_proto_tree, gboolean prot
}
epan_dissect_t*
-epan_dissect_new(gboolean create_proto_tree, gboolean proto_tree_visible)
+epan_dissect_new(const gboolean create_proto_tree, const gboolean proto_tree_visible)
{
epan_dissect_t *edt;
@@ -176,7 +176,7 @@ epan_dissect_new(gboolean create_proto_tree, gboolean proto_tree_visible)
}
void
-epan_dissect_fake_protocols(epan_dissect_t *edt, gboolean fake_protocols)
+epan_dissect_fake_protocols(epan_dissect_t *edt, const gboolean fake_protocols)
{
if (edt)
proto_tree_set_fake_protocols(edt->tree, fake_protocols);
@@ -227,13 +227,13 @@ epan_dissect_prime_dfilter(epan_dissect_t *edt, const dfilter_t* dfcode)
const gchar *
epan_custom_set(epan_dissect_t *edt, int field_id,
gchar *result,
- gchar *expr, int size )
+ gchar *expr, const int size )
{
return proto_custom_set(edt->tree, field_id, result, expr, size);
}
void
-epan_dissect_fill_in_columns(epan_dissect_t *edt, gboolean fill_col_exprs, gboolean fill_fd_colums)
+epan_dissect_fill_in_columns(epan_dissect_t *edt, const gboolean fill_col_exprs, const gboolean fill_fd_colums)
{
col_custom_set_edt(edt, edt->pi.cinfo);
col_fill_in(&edt->pi, fill_col_exprs, fill_fd_colums);