aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-06-30 16:49:06 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-12 23:42:47 +0200
commit9227dccf0758ba506af8ff96bb90c95a4bb72968 (patch)
treed9d5c045bc0040f4de1a4e0dff25d205ca2f13e1
parent03358a78e719c70e1cffaa030ae5a0de02c4c802 (diff)
osmo-bsc: rename calling_addr to msc_addr
The variable name "calling_addr" is not very expressive. Change the variable name to "msc_addr". Change-Id: I3a43880d4172063e78bfef1556dbb037f20a9a99
-rw-r--r--src/osmo-bsc/osmo_bsc_sigtran.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/osmo-bsc/osmo_bsc_sigtran.c b/src/osmo-bsc/osmo_bsc_sigtran.c
index 7ae2f362..397dcf4f 100644
--- a/src/osmo-bsc/osmo_bsc_sigtran.c
+++ b/src/osmo-bsc/osmo_bsc_sigtran.c
@@ -103,15 +103,15 @@ void osmo_bsc_sigtran_tx_reset_ack(struct bsc_msc_data *msc)
}
/* Find an MSC by its sigtran point code */
-static struct bsc_msc_data *get_msc_by_addr(struct osmo_sccp_addr *calling_addr)
+static struct bsc_msc_data *get_msc_by_addr(struct osmo_sccp_addr *msc_addr)
{
struct bsc_msc_data *msc;
llist_for_each_entry(msc, msc_list, entry) {
- if (memcmp(calling_addr, &msc->a.msc_addr, sizeof(*calling_addr)) == 0)
+ if (memcmp(msc_addr, &msc->a.msc_addr, sizeof(*msc_addr)) == 0)
return msc;
}
- LOGP(DMSC, LOGL_ERROR, "Unable to find MSC data under address: %s\n", osmo_sccp_addr_dump(calling_addr));
+ LOGP(DMSC, LOGL_ERROR, "Unable to find MSC data under address: %s\n", osmo_sccp_addr_dump(msc_addr));
return NULL;
}
@@ -131,9 +131,9 @@ static int handle_data_from_msc(int conn_id, struct msgb *msg)
}
/* Sent unitdata to MSC, use the point code to determine which MSC it is */
-static int handle_unitdata_from_msc(struct osmo_sccp_addr *calling_addr, struct msgb *msg)
+static int handle_unitdata_from_msc(struct osmo_sccp_addr *msc_addr, struct msgb *msg)
{
- struct bsc_msc_data *msc = get_msc_by_addr(calling_addr);
+ struct bsc_msc_data *msc = get_msc_by_addr(msc_addr);
int rc = -EINVAL;
if (msc) {
@@ -141,7 +141,7 @@ static int handle_unitdata_from_msc(struct osmo_sccp_addr *calling_addr, struct
rc = bsc_handle_udt(msc, msg, msgb_l2len(msg));
} else
LOGP(DMSC, LOGL_NOTICE, "incoming unitdata data from unknown remote address: %s\n",
- osmo_sccp_addr_dump(calling_addr));
+ osmo_sccp_addr_dump(msc_addr));
return rc;
}