diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-02-05 22:10:20 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-02-05 22:10:20 +0000 |
commit | e0828c513d59cb40a36133a2bf931b12ad31f9d5 (patch) | |
tree | b39a39039329ab8e8d0e2e0d6776be98908fb6e6 /epan | |
parent | ec0efa47092556868f3521180d415b2816328412 (diff) | |
download | wireshark-e0828c513d59cb40a36133a2bf931b12ad31f9d5.tar.gz wireshark-e0828c513d59cb40a36133a2bf931b12ad31f9d5.tar.bz2 wireshark-e0828c513d59cb40a36133a2bf931b12ad31f9d5.zip |
The typedef in "epan/value_string.h" declares "value_string" to be a
typedef for "struct _value_string"; as such, the incomplete structure
declaration in "epan/proto.h" should declare "struct _value_string", not
"struct value_string", and casts and declarations in that header should
also use "struct _value_string", not "struct value_string".
svn path=/trunk/; revision=4699
Diffstat (limited to 'epan')
-rw-r--r-- | epan/proto.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/proto.h b/epan/proto.h index 439bea202b..383fb1b34b 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -1,7 +1,7 @@ /* proto.h * Definitions for protocol display * - * $Id: proto.h,v 1.26 2002/01/04 08:56:11 guy Exp $ + * $Id: proto.h,v 1.27 2002/02/05 22:10:20 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -42,13 +42,13 @@ #include "tvbuff.h" #include "ftypes/ftypes.h" -struct value_string; +struct _value_string; #define ITEM_LABEL_LENGTH 240 /* In order to make a const value_string[] look like a value_string*, I * need this macro */ -#define VALS(x) (struct value_string*)(x) +#define VALS(x) (struct _value_string*)(x) /* ... and similarly, */ #define TFS(x) (struct true_false_string*)(x) @@ -187,7 +187,7 @@ extern proto_tree* proto_item_add_subtree(proto_item *ti, gint idx); extern int proto_register_field(char *name, char *abbrev, enum ftenum type, int parent, - struct value_string* vals); + struct _value_string* vals); extern int proto_register_protocol(char *name, char *short_name, char *filter_name); |