summaryrefslogtreecommitdiff
path: root/epan/emem.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2008-06-25 03:05:19 +0000
committerGuy Harris <guy@alum.mit.edu>2008-06-25 03:05:19 +0000
commit9e6329860a870298350c79012f2c8e2b75362427 (patch)
tree0fa21e62dd8eedd1a5f0ed5aa1249c11a724b1f3 /epan/emem.c
parent495ddc2830cb3f490e53519ca3074d1aa52c2600 (diff)
downloadwireshark-9e6329860a870298350c79012f2c8e2b75362427.tar.gz
Fix some warnings - declare some arguments, variables, and structure
members to be const pointers when that's possible, and throw in some casts when the GLib API fails to have properly consted arguments. Use ep_strdup_printf() in some cases. svn path=/trunk/; revision=25596
Diffstat (limited to 'epan/emem.c')
-rw-r--r--epan/emem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/emem.c b/epan/emem.c
index a8cbebc4f2..4545520f96 100644
--- a/epan/emem.c
+++ b/epan/emem.c
@@ -1319,7 +1319,7 @@ se_tree_create_non_persistent(int type, const char *name)
/* This tree is PErmanent and will never be released
*/
emem_tree_t *
-pe_tree_create(int type, char *name)
+pe_tree_create(int type, const char *name)
{
emem_tree_t *tree_list;
@@ -1337,7 +1337,7 @@ pe_tree_create(int type, char *name)
* as the parent tree.
*/
static emem_tree_t *
-emem_tree_create_subtree(emem_tree_t *parent_tree, char *name)
+emem_tree_create_subtree(emem_tree_t *parent_tree, const char *name)
{
emem_tree_t *tree_list;