aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-09-29 01:31:19 +0000
committerGuy Harris <guy@alum.mit.edu>2005-09-29 01:31:19 +0000
commit7aa4b4ffe1f575bbb50f03e012b6f77dd5ab02f0 (patch)
tree97e667fc22967e6cadd02d7faa5868833b5e449d
parent9a42ef953625a6de31a00df68a53e3108be284d3 (diff)
Make "top_tree" static; nobody else uses it, and if they're both not
static, they collide with one another in builds on at least some platforms. svn path=/trunk/; revision=16049
-rw-r--r--epan/dissectors/packet-sigcomp.c2
-rw-r--r--epan/dissectors/packet-smb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-sigcomp.c b/epan/dissectors/packet-sigcomp.c
index 54573b1963..a811d285da 100644
--- a/epan/dissectors/packet-sigcomp.c
+++ b/epan/dissectors/packet-sigcomp.c
@@ -319,7 +319,7 @@ static void tvb_raw_text_add(tvbuff_t *tvb, proto_tree *tree);
static int dissect_sigcomp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
-proto_tree *top_tree;
+static proto_tree *top_tree;
/* Initialize the state handler
*
diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c
index d17e4dd5a3..278069f6b0 100644
--- a/epan/dissectors/packet-smb.c
+++ b/epan/dissectors/packet-smb.c
@@ -713,7 +713,7 @@ static const fragment_items smb_frag_items = {
"segments"
};
-proto_tree *top_tree=NULL; /* ugly */
+static proto_tree *top_tree=NULL; /* ugly */
static const char *decode_smb_name(guint8);
static int dissect_smb_command(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *smb_tree, guint8 cmd, gboolean first_pdu);