aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-q708.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-10-13 16:47:13 +0000
committerBill Meier <wmeier@newsguy.com>2010-10-13 16:47:13 +0000
commit45da078b7dbad8a5793a1d899066871b6d67ee20 (patch)
treed644d51d0931387e7256a7b2f58d18697e99b949 /epan/dissectors/packet-q708.c
parentd1de3270579e2c5b7272b0540954b0f76d552fc6 (diff)
Use val_to_str_ext_const for refs to the extended value strings;
Extern the extended value strings struct (not the value_string arrays themselves) so any external use of these arrays is via the extended value string functions. svn path=/trunk/; revision=34499
Diffstat (limited to 'epan/dissectors/packet-q708.c')
-rw-r--r--epan/dissectors/packet-q708.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/epan/dissectors/packet-q708.c b/epan/dissectors/packet-q708.c
index f2e781c13c..a5687da6a8 100644
--- a/epan/dissectors/packet-q708.c
+++ b/epan/dissectors/packet-q708.c
@@ -30,6 +30,8 @@
#include <glib.h>
#include <epan/packet.h>
+#include <epan/value_string.h>
+
#include "packet-q708.h"
static int proto_q708 = -1;
@@ -44,7 +46,7 @@ static int hf_q708_ispc_operator_name = -1;
*
* Mapping of SANC to Geographical Area or Signalling Network
*/
-const value_string q708_sanc_areas[] = {
+static const value_string q708_sanc_areas[] = {
{ 512, "Liechtenstein (Principality of)" },
{ 513, "Italy" },
{ 514, "Netherlands (Kingdom of the)" },
@@ -971,7 +973,7 @@ const value_string q708_sanc_areas[] = {
*
* Mapping of ISPC to Unique name of the signalling point
*/
-const value_string q708_ispc_point_name[] = {
+static const value_string q708_ispc_point_name[] = {
{ 4096, "LTN ISC Vaduz" },
{ 4097, "LTN ISC Eschen" },
{ 4099, "Mobilikom GMSC Mauren" },
@@ -6365,7 +6367,7 @@ const value_string q708_ispc_point_name[] = {
*
* Mapping of ISPC to Name of the signalling point operator
*/
-const value_string q708_ispc_operator_name[] = {
+static const value_string q708_ispc_operator_name[] = {
{ 4096, "LTN Liechtenstein TeleNet AG" },
{ 4097, "LTN Liechtenstein TeleNet AG" },
{ 4099, "Mobilkom (Liechtenstein) AG" },
@@ -11752,9 +11754,9 @@ const value_string q708_ispc_operator_name[] = {
{ 0, NULL }
};
-static value_string_ext q708_ispc_point_name_ext = VALUE_STRING_EXT_INIT(q708_ispc_point_name);
-static value_string_ext q708_ispc_operator_name_ext = VALUE_STRING_EXT_INIT(q708_ispc_operator_name);
-static value_string_ext q708_sanc_areas_ext = VALUE_STRING_EXT_INIT(q708_sanc_areas);
+value_string_ext q708_ispc_point_name_ext = VALUE_STRING_EXT_INIT(q708_ispc_point_name);
+value_string_ext q708_ispc_operator_name_ext = VALUE_STRING_EXT_INIT(q708_ispc_operator_name);
+value_string_ext q708_sanc_areas_ext = VALUE_STRING_EXT_INIT(q708_sanc_areas);
/*
* International signalling point codes (i.e. PCs with ni = 0) are allocated by the ITU,
@@ -11771,12 +11773,12 @@ analyze_q708_ispc(tvbuff_t *tvb, proto_tree *tree, int offset, int length, guint
proto_tree_add_uint_format_value(tree, hf_q708_sanc, tvb, offset, length, sanc,
"%s (%u-%03u)",
- val_to_str(sanc, q708_sanc_areas, "Unknown"),
+ val_to_str_ext_const(sanc, &q708_sanc_areas_ext, "Unknown"),
sanc >> 8, sanc & 0xff);
proto_tree_add_string(tree, hf_q708_ispc_name, tvb, offset, length,
- val_to_str_ext(ispc, &q708_ispc_point_name_ext, "Unknown"));
+ val_to_str_ext_const(ispc, &q708_ispc_point_name_ext, "Unknown"));
proto_tree_add_string(tree, hf_q708_ispc_operator_name, tvb, offset, length,
- val_to_str_ext(ispc, &q708_ispc_operator_name_ext, "Unknown"));
+ val_to_str_ext_const(ispc, &q708_ispc_operator_name_ext, "Unknown"));
}
void