aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-04-23 10:59:26 +0000
committerGuy Harris <guy@alum.mit.edu>2007-04-23 10:59:26 +0000
commit1bc049906a35c3490532ab68fcbf90750c225f77 (patch)
treef690697725617a640820ade652da4cf766bdc863 /epan/emem.h
parent7dc9df5f26ed136405fd1e99d62ebc3a6bf92dd5 (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. svn path=/trunk/; revision=21526
Diffstat (limited to 'epan/emem.h')
-rw-r--r--epan/emem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/emem.h b/epan/emem.h
index e3066abbe6..e834caa6c9 100644
--- a/epan/emem.h
+++ b/epan/emem.h
@@ -188,7 +188,7 @@ typedef struct _emem_tree_node_t {
typedef struct _emem_tree_t {
struct _emem_tree_t *next;
int type;
- char *name; /* just a string to make debugging easier */
+ const char *name; /* just a string to make debugging easier */
emem_tree_node_t *tree;
void *(*malloc)(size_t);
} emem_tree_t;
@@ -208,7 +208,7 @@ extern emem_tree_t *se_trees;
*
* type is : EMEM_TREE_TYPE_RED_BLACK for a standard red/black tree.
*/
-emem_tree_t *se_tree_create(int type, char *name);
+emem_tree_t *se_tree_create(int type, const char *name);
/* This function is similar to the se_tree_create() call but with the
* difference that when the se memory is release everything including the
@@ -219,7 +219,7 @@ emem_tree_t *se_tree_create(int type, char *name);
* another structure that is also se allocated so that when the structure is
* released, the tree will be completely released as well.
*/
-emem_tree_t *se_tree_create_non_persistent(int type, char *name);
+emem_tree_t *se_tree_create_non_persistent(int type, const char *name);
/* se_tree_insert32
* Insert data into the tree and key it by a 32bit integer value