aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/gsmmap
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-28 02:53:49 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-28 02:53:49 +0000
commit4a3ce1cc17bebd1d36c18bfb450358623b33a8f4 (patch)
tree42f05fbafbcba654a14a7c624bfc50d10fc7b6ba /asn1/gsmmap
parentc5114308e63830a86bffffe35f11512438d1589b (diff)
The "application_context_version" variables in the CAMEL and GSM MAP
dissectors aren't needed outside the dissectors, and having more than one of them exported causes build problems, at least on OS X - make them static. Fix indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13951 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'asn1/gsmmap')
-rw-r--r--asn1/gsmmap/packet-gsm_map-template.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/asn1/gsmmap/packet-gsm_map-template.c b/asn1/gsmmap/packet-gsm_map-template.c
index de4e483b61..a1176bd14c 100644
--- a/asn1/gsmmap/packet-gsm_map-template.c
+++ b/asn1/gsmmap/packet-gsm_map-template.c
@@ -108,7 +108,7 @@ dissector_handle_t map_handle;
/* Global variables */
static proto_tree *top_tree;
-int application_context_version;
+static int application_context_version;
gint protocolId;
static int gsm_map_tap = -1;
@@ -928,15 +928,15 @@ static guint8 gsm_map_pdu_size = 0;
static int
dissect_gsm_map_GSMMAPPDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo , proto_tree *tree, int hf_index) {
- char *version_ptr, *version_str;
+ char *version_ptr, *version_str;
- opcode = 0;
- application_context_version = 0;
- if (pinfo->private_data != NULL){
- version_ptr = strrchr(pinfo->private_data,'.');
- version_str = g_strdup(version_ptr+1);
- application_context_version = atoi(version_str);
- }
+ opcode = 0;
+ application_context_version = 0;
+ if (pinfo->private_data != NULL){
+ version_ptr = strrchr(pinfo->private_data,'.');
+ version_str = g_strdup(version_ptr+1);
+ application_context_version = atoi(version_str);
+ }
gsmmap_pdu_type = tvb_get_guint8(tvb, offset)&0x0f;
/* Get the length and add 2 */