From e40b9637ea9f166ed4e574550c05b429b1099e39 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 31 Oct 2019 15:38:30 +0100 Subject: gsm: gsm_utils: Fix return type of API ms_class_gmsk_dbm() and add unit tests Only known user of API is in osmocom-bb and it compiles fine after the change. Related: OS#4244 Change-Id: Ia10345008b3aca50b30482ef3b852b03eca71995 --- src/gsm/gsm_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gsm') diff --git a/src/gsm/gsm_utils.c b/src/gsm/gsm_utils.c index 365920fa..ae77a9dc 100644 --- a/src/gsm/gsm_utils.c +++ b/src/gsm/gsm_utils.c @@ -501,8 +501,8 @@ size_t gsm0858_rsl_ul_meas_enc(struct gsm_meas_rep_unidir *mru, bool dtxd_used, /*! Convert power class to dBm according to GSM TS 05.05 * \param[in] band GSM frequency band * \param[in] class GSM power class - * \returns maximum transmit power of power class in dBm */ -unsigned int ms_class_gmsk_dbm(enum gsm_band band, int class) + * \returns maximum transmit power of power class in dBm, negative on error */ +int ms_class_gmsk_dbm(enum gsm_band band, int class) { switch (band) { case GSM_BAND_450: -- cgit v1.2.3