Do not register fields twice
authorPascal Quantin <pascal.quantin@gmail.com>
Wed, 1 Aug 2012 19:22:59 +0000 (19:22 -0000)
committerPascal Quantin <pascal.quantin@gmail.com>
Wed, 1 Aug 2012 19:22:59 +0000 (19:22 -0000)
svn path=/trunk/; revision=44195

epan/dissectors/packet-gmr1_rr.c
epan/dissectors/packet-gsm_a_rr.c

index eb6175e79cf571c640c17fd2e1a0dadb3e6a2309..242d393f7e58eceed07650ac504bad8e40999bc9 100644 (file)
@@ -2377,8 +2377,6 @@ proto_register_gmr1_rr(void)
        /* Register the protocol name and field description */
        proto_gmr1_ccch = proto_register_protocol("GEO-Mobile Radio (1) CCCH", "GMR-1 CCCH", "gmr1_ccch");
 
-       proto_register_field_array(proto_gmr1_ccch, hf, array_length(hf));
-
        /* Register dissector */
        register_dissector("gmr1_ccch", dissect_gmr1_ccch, proto_gmr1_ccch);
 }
index cb4545c1c1cc71410eb84bf9fa8fb30573ed01f7..41f0b7647c303ddad684d20624f3f71c1e98f09a 100644 (file)
@@ -10524,7 +10524,7 @@ proto_register_gsm_a_rr(void)
                 NULL, HFILL }
             },
             { &hf_gsm_a_rr_L2_pseudo_len,
-              { "L2 Pseudo Length value","gsm_a_rr.rr_2_pseudo_len",
+              { "L2 Pseudo Length value","gsm_a_rr.l2_pseudo_len",
                 FT_UINT8, BASE_DEC, NULL, 0xfc,
                 NULL, HFILL }
             },
@@ -12293,8 +12293,6 @@ proto_register_gsm_a_rr(void)
     proto_a_ccch =
         proto_register_protocol("GSM CCCH", "GSM CCCH", "gsm_a_ccch");
 
-    proto_register_field_array(proto_a_ccch, hf, array_length(hf));
-
     /* subdissector code */
     register_dissector("gsm_a_ccch", dissect_ccch, proto_a_ccch);