aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-11-28 01:46:14 +0000
committerGuy Harris <guy@alum.mit.edu>2002-11-28 01:46:14 +0000
commit7b743f7d7d2a2a475d46633bdf939dd839fe9ae2 (patch)
tree4b2a75e60be32a6815ebe522700dfc33c310d074 /epan/dfilter
parentacaf3c90b32704ffb34b452c86835577e0fdc38e (diff)
Make the "strings" pointer in a "header_field_info" structure a const
pointer, and put "const" into the casts in "VALS()" and "TFS()" macros, so we don't un-constify pointers to "value_string" arrays and "true_false_string" structures. Make some things "const" to keep the compiler happy with the previous change. svn path=/trunk/; revision=6684
Diffstat (limited to 'epan/dfilter')
-rw-r--r--epan/dfilter/semcheck.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dfilter/semcheck.c b/epan/dfilter/semcheck.c
index 30f36b1b7d..01d1268514 100644
--- a/epan/dfilter/semcheck.c
+++ b/epan/dfilter/semcheck.c
@@ -1,5 +1,5 @@
/*
- * $Id: semcheck.c,v 1.13 2002/08/28 20:40:55 jmayer Exp $
+ * $Id: semcheck.c,v 1.14 2002/11/28 01:46:14 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -126,9 +126,9 @@ mk_uint32_fvalue(guint32 val)
static fvalue_t*
mk_fvalue_from_val_string(header_field_info *hfinfo, char *s)
{
- static true_false_string default_tf = { "True", "False" };
- true_false_string *tf = &default_tf;
- value_string *vals;
+ static const true_false_string default_tf = { "True", "False" };
+ const true_false_string *tf = &default_tf;
+ const value_string *vals;
/* Early return? */
switch(hfinfo->type) {