aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-01-02 14:10:25 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-01-02 14:10:25 +0100
commitd4d87c5427bdf838cbfc3948bcf035e1e4036fd9 (patch)
tree52ffdcaf07314b8aeeffc76552c563425a046183
parent324470205860303edb6ea213fc8670b2b69a7f11 (diff)
abis: Use the right return value for abis_nm_pchan4chcomb
abis_nm_pchan4chcomb will return a pchan for a given channel combination but returned a value of the channel combination. Fix it to return the physical channel combination. Fixes: Coverity CID 1040767
-rw-r--r--include/osmocom/gsm/abis_nm.h2
-rw-r--r--src/gsm/abis_nm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/gsm/abis_nm.h b/include/osmocom/gsm/abis_nm.h
index 4dee012..4682ead 100644
--- a/include/osmocom/gsm/abis_nm.h
+++ b/include/osmocom/gsm/abis_nm.h
@@ -43,7 +43,7 @@ const char *abis_nm_test_name(uint8_t test);
int abis_nm_chcomb4pchan(enum gsm_phys_chan_config pchan);
-enum abis_nm_chan_comb abis_nm_pchan4chcomb(uint8_t chcomb);
+enum gsm_phys_chan_config abis_nm_pchan4chcomb(uint8_t chcomb);
/*! @} */
diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c
index bb7008b..2c23a64 100644
--- a/src/gsm/abis_nm.c
+++ b/src/gsm/abis_nm.c
@@ -430,7 +430,7 @@ int abis_nm_chcomb4pchan(enum gsm_phys_chan_config pchan)
}
/*! \brief Obtain physical channel config for OML Channel Combination */
-enum abis_nm_chan_comb abis_nm_pchan4chcomb(uint8_t chcomb)
+enum gsm_phys_chan_config abis_nm_pchan4chcomb(uint8_t chcomb)
{
int i;
for (i = 0; i < ARRAY_SIZE(chcomb4pchan); i++) {