pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-mgw/+/29460 )
Change subject: Use 'static const' instead of 'const static' everywhere
......................................................................
Use 'static const' instead of 'const static' everywhere
As requested by the linter on a new patch being submitted.
Change-Id: I692624da6a1c7f59ac2989509f074cb52d089907
---
M src/libosmo-mgcp/mgcp_conn.c
M src/libosmo-mgcp/mgcp_ratectr.c
2 files changed, 7 insertions(+), 7 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/60/29460/1
diff --git a/src/libosmo-mgcp/mgcp_conn.c b/src/libosmo-mgcp/mgcp_conn.c
index 7ab6eca..d963a56 100644
--- a/src/libosmo-mgcp/mgcp_conn.c
+++ b/src/libosmo-mgcp/mgcp_conn.c
@@ -37,7 +37,7 @@
#include <osmocom/core/timer.h>
#include <ctype.h>
-const static struct rate_ctr_group_desc rate_ctr_group_desc = {
+static const struct rate_ctr_group_desc rate_ctr_group_desc = {
.group_name_prefix = "conn_rtp",
.group_description = "rtp connection statistics",
.class_id = 1,
diff --git a/src/libosmo-mgcp/mgcp_ratectr.c b/src/libosmo-mgcp/mgcp_ratectr.c
index 6030ce2..bc6aa3c 100644
--- a/src/libosmo-mgcp/mgcp_ratectr.c
+++ b/src/libosmo-mgcp/mgcp_ratectr.c
@@ -43,7 +43,7 @@
{ "mgcp:err_rx_no_endpoint", "can't find MGCP endpoint, probably
we've used all allocated endpoints." },
};
-const static struct rate_ctr_group_desc mgcp_general_ctr_group_desc = {
+static const struct rate_ctr_group_desc mgcp_general_ctr_group_desc = {
.group_name_prefix = "mgcp",
.group_description = "mgcp general statistics",
.class_id = OSMO_STATS_CLASS_GLOBAL,
@@ -71,7 +71,7 @@
[MGCP_CRCX_FAIL_CLAIM] = { "crcx:claim", "endpoint can not be
claimed." },
};
-const static struct rate_ctr_group_desc mgcp_crcx_ctr_group_desc = {
+static const struct rate_ctr_group_desc mgcp_crcx_ctr_group_desc = {
.group_name_prefix = "crcx",
.group_description = "crxc statistics",
.class_id = OSMO_STATS_CLASS_GLOBAL,
@@ -97,7 +97,7 @@
[MGCP_MDCX_FAIL_AVAIL] = { "mdcx:unavailable", "endpoint
unavailable." },
};
-const static struct rate_ctr_group_desc mgcp_mdcx_ctr_group_desc = {
+static const struct rate_ctr_group_desc mgcp_mdcx_ctr_group_desc = {
.group_name_prefix = "mdcx",
.group_description = "mdcx statistics",
.class_id = OSMO_STATS_CLASS_GLOBAL,
@@ -116,7 +116,7 @@
[MGCP_DLCX_FAIL_AVAIL] = { "dlcx:unavailable", "endpoint
unavailable." },
};
-const static struct rate_ctr_group_desc mgcp_dlcx_ctr_group_desc = {
+static const struct rate_ctr_group_desc mgcp_dlcx_ctr_group_desc = {
.group_name_prefix = "dlcx",
.group_description = "dlcx statistics",
.class_id = OSMO_STATS_CLASS_GLOBAL,
@@ -130,7 +130,7 @@
[E1_I460_TRAU_MUX_EMPTY_CTR] = { "e1:i460", "Outbound I.460 MUX queue
empty." }
};
-const static struct rate_ctr_group_desc e1_rate_ctr_group_desc = {
+static const struct rate_ctr_group_desc e1_rate_ctr_group_desc = {
.group_name_prefix = "e1",
.group_description = "e1 statistics",
.class_id = OSMO_STATS_CLASS_GLOBAL,
@@ -138,7 +138,7 @@
.ctr_desc = e1_rate_ctr_desc
};
-const static struct rate_ctr_group_desc all_rtp_conn_rate_ctr_group_desc = {
+static const struct rate_ctr_group_desc all_rtp_conn_rate_ctr_group_desc = {
.group_name_prefix = "all_rtp_conn",
.group_description = "aggregated statistics for all rtp connections",
.class_id = 1,
--
To view, visit
https://gerrit.osmocom.org/c/osmo-mgw/+/29460
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I692624da6a1c7f59ac2989509f074cb52d089907
Gerrit-Change-Number: 29460
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange