msuraev has submitted this change. (
https://gerrit.osmocom.org/c/libosmo-sccp/+/29159 )
Change subject: [cosmetic] sccp_scoc.c: constify function parameters
......................................................................
[cosmetic] sccp_scoc.c: constify function parameters
Related: OS#5579
Change-Id: I398e3efa3e097de8907617cfdf363e1d3b96f666
---
M include/osmocom/sigtran/sccp_sap.h
M src/sccp_sap.c
M src/sccp_scoc.c
3 files changed, 4 insertions(+), 4 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/include/osmocom/sigtran/sccp_sap.h
b/include/osmocom/sigtran/sccp_sap.h
index 2b41fed..5624d33 100644
--- a/include/osmocom/sigtran/sccp_sap.h
+++ b/include/osmocom/sigtran/sccp_sap.h
@@ -273,7 +273,7 @@
#define msgb_scu_prim(msg) ((struct osmo_scu_prim *)(msg)->l1h)
-char *osmo_scu_prim_name(struct osmo_prim_hdr *oph);
+char *osmo_scu_prim_name(const struct osmo_prim_hdr *oph);
struct osmo_ss7_instance;
struct osmo_sccp_instance;
diff --git a/src/sccp_sap.c b/src/sccp_sap.c
index 7c9ce65..cdf0acc 100644
--- a/src/sccp_sap.c
+++ b/src/sccp_sap.c
@@ -43,7 +43,7 @@
static char prim_name_buf[128];
-char *osmo_scu_prim_name(struct osmo_prim_hdr *oph)
+char *osmo_scu_prim_name(const struct osmo_prim_hdr *oph)
{
const char *name = get_value_string(osmo_scu_prim_names,
oph->primitive);
diff --git a/src/sccp_scoc.c b/src/sccp_scoc.c
index 5e2cbdd..c209bd7 100644
--- a/src/sccp_scoc.c
+++ b/src/sccp_scoc.c
@@ -572,7 +572,7 @@
/* generate a 'struct xua_msg' of requested type from connection +
* primitive data */
static struct xua_msg *xua_gen_msg_co(struct sccp_connection *conn, uint32_t
event,
- struct osmo_scu_prim *prim, int msg_type)
+ const struct osmo_scu_prim *prim, int
msg_type)
{
struct xua_msg *xua = xua_msg_alloc();
@@ -689,7 +689,7 @@
/* generate xua_msg, encode it and send it to SCRC */
static int xua_gen_encode_and_send(struct sccp_connection *conn, uint32_t
event,
- struct osmo_scu_prim *prim, int msg_type)
+ const struct osmo_scu_prim *prim, int
msg_type)
{
struct xua_msg *xua;
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted
one.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/29159
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I398e3efa3e097de8907617cfdf363e1d3b96f666
Gerrit-Change-Number: 29159
Gerrit-PatchSet: 3
Gerrit-Owner: msuraev <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: msuraev <[email protected]>
Gerrit-Reviewer: neels <[email protected]>
Gerrit-MessageType: merged