Don't make claims of constness that can't be guaranteed in terms the C
authorGuy Harris <guy@alum.mit.edu>
Tue, 14 Jan 2014 17:45:03 +0000 (17:45 -0000)
committerGuy Harris <guy@alum.mit.edu>
Tue, 14 Jan 2014 17:45:03 +0000 (17:45 -0000)
compiler can verify.

svn path=/trunk/; revision=54792

asn1/h248/packet-h248-template.c
asn1/h248/packet-h248-template.h
epan/dissectors/packet-h248.c
epan/dissectors/packet-h248.h
epan/dissectors/packet-h248_10.c
epan/dissectors/packet-h248_2.c
epan/dissectors/packet-h248_3gpp.c
epan/dissectors/packet-h248_7.c

index 253b9fbf7a68ee0906f2948ae3bee938a5c37c8f..2ffc3fd0beba73aefaacb4a6221a4d20ca2620e1 100644 (file)
@@ -905,7 +905,7 @@ static gboolean is_pkg_default(guint16 pkgid) {
     return s_pkg->is_default;
 }
 
-void h248_register_package(const h248_package_t* pkg, pkg_reg_action reg_action) {
+void h248_register_package(h248_package_t* pkg, pkg_reg_action reg_action) {
     h248_package_t *pkg_found = NULL, *pkg_high = NULL, *pkg_low = NULL;
     s_h248_package_t *s_pkg = NULL;
     value_string *vst; 
index 96e87f35e0d6cf16c96bb82dc9ab65f587a40908..5d79ff5231f92c4c9db87e2428e7a3a63b9d775b 100644 (file)
@@ -115,6 +115,6 @@ struct _h248_curr_info_t {
 };
 
 WS_DLL_PUBLIC
-void h248_register_package(const h248_package_t* pkg, pkg_reg_action reg_action);
+void h248_register_package(h248_package_t* pkg, pkg_reg_action reg_action);
 
 #endif  /* PACKET_H248_H */
index 6306ed607b89291138680c495ac1c81dfa203025..85b5f88c40e8054f44363ce1d40726dac90fada4 100644 (file)
@@ -1380,7 +1380,7 @@ static gboolean is_pkg_default(guint16 pkgid) {
     return s_pkg->is_default;
 }
 
-void h248_register_package(const h248_package_t* pkg, pkg_reg_action reg_action) {
+void h248_register_package(h248_package_t* pkg, pkg_reg_action reg_action) {
     h248_package_t *pkg_found = NULL, *pkg_high = NULL, *pkg_low = NULL;
     s_h248_package_t *s_pkg = NULL;
     value_string *vst; 
index 8d7d8ed3f3414cb492ed0ab2d9c469593781ed62..0af79d3f397dfefa439f49e6bc2dfa7a0c863203 100644 (file)
@@ -123,6 +123,6 @@ struct _h248_curr_info_t {
 };
 
 WS_DLL_PUBLIC
-void h248_register_package(const h248_package_t* pkg, pkg_reg_action reg_action);
+void h248_register_package(h248_package_t* pkg, pkg_reg_action reg_action);
 
 #endif  /* PACKET_H248_H */
index 4680723727ae414771117d1a2c7639067c66fa7a..a007eff8f3b2bfa8fcdd9602dbdef0b176b83634 100644 (file)
@@ -74,7 +74,7 @@ static const h248_pkg_evt_t h248_CHP_mgcon_events[] = {
        { 0, NULL, NULL, NULL, NULL}
 };
 
-static const h248_package_t h248_pkg_CHP = {
+static h248_package_t h248_pkg_CHP = {
        0x0029,
        &proto_h248_CHP,
        &ett_h248_CHP,
index ad58c13cd208b6c6b399dcd2ae09eae74450e534..6221f02f052e4fe747e073c46cee7b8b8835b27f 100644 (file)
@@ -105,7 +105,7 @@ static h248_pkg_evt_t h248_pkg_generic_cause_evts[] = {
 
 
 /* Call Type Discrimination Package */
-static const h248_package_t h248_pkg_ctype = {
+static h248_package_t h248_pkg_ctype = {
        0x0011,                                         /* Id */
        &proto_h248_2,                          /* hfid */
        &ett_h248_2,                            /* ett */
index 60f258108ad3e72206319ee0f7536779720faac0..f1d35353c7b263e664bef352a6c51b4a325ef96b 100644 (file)
@@ -127,7 +127,7 @@ static const h248_pkg_param_t h248_package_3GUP_properties[] = {
        { 0x0000, NULL, NULL, NULL }
 };
 
-static const h248_package_t h248_package_3GUP = {
+static h248_package_t h248_package_3GUP = {
        0x002f,
        &proto_h248_package_3GUP,
        &ett_h248_package_3GUP,
@@ -257,7 +257,7 @@ static const h248_pkg_sig_t h248_package_3GCSD_sigs[] = {
        { 0, NULL, NULL, NULL,NULL}
 };
 
-static const h248_package_t h248_package_3GCSD = {
+static h248_package_t h248_package_3GCSD = {
        0x0030,
        &hf_h248_package_3GCSD,
        &ett_h248_package_3GCSD,
@@ -415,7 +415,7 @@ static const h248_pkg_evt_t h248_package_3GTFO_evts[] = {
        { 0, NULL, NULL, NULL,NULL}
 };
 
-static const h248_package_t h248_package_3GTFO = {
+static h248_package_t h248_package_3GTFO = {
        0x0031,
        &hf_h248_package_3GTFO,
        &ett_h248_package_3GTFO,
index 4b7e7374d59b661836617db3fc56f452760920d8..5cba7a1b28de1f057c5b64cccc0f527bf0aa76d0 100644 (file)
@@ -123,7 +123,7 @@ static const h248_pkg_sig_t h248_an_signals[] = {
        { 0, NULL, NULL, NULL, NULL}
 };
 
-static const h248_package_t h248_pkg_an = {
+static h248_package_t h248_pkg_an = {
        0x001d,
        &proto_h248_an,
        &ett_h248_an,