mirror of https://gerrit.osmocom.org/libosmocore
fix compiler warnings (itsme <itsme@xs4all.nl>)
* added several 'const' for strings. * added 'extern' to declarations of rsl_rlm_cause_strs
This commit is contained in:
parent
6214b92f81
commit
cbc8062ef8
|
@ -46,7 +46,7 @@ enum gsm_band {
|
||||||
GSM_BAND_810 = 0x80,
|
GSM_BAND_810 = 0x80,
|
||||||
};
|
};
|
||||||
|
|
||||||
char *gsm_band_name(enum gsm_band band);
|
const char *gsm_band_name(enum gsm_band band);
|
||||||
enum gsm_band gsm_band_parse(const char *mhz);
|
enum gsm_band gsm_band_parse(const char *mhz);
|
||||||
|
|
||||||
int gsm_7bit_decode(char *decoded, const uint8_t *user_data, uint8_t length);
|
int gsm_7bit_decode(char *decoded, const uint8_t *user_data, uint8_t length);
|
||||||
|
|
|
@ -16,7 +16,7 @@ uint8_t rsl_enc_chan_nr(uint8_t type, uint8_t subch, uint8_t timeslot);
|
||||||
/* decode channel number as per Section 9.3.1 */
|
/* decode channel number as per Section 9.3.1 */
|
||||||
int rsl_dec_chan_nr(uint8_t chan_nr, uint8_t *type, uint8_t *subch, uint8_t *timeslot);
|
int rsl_dec_chan_nr(uint8_t chan_nr, uint8_t *type, uint8_t *subch, uint8_t *timeslot);
|
||||||
|
|
||||||
const struct value_string rsl_rlm_cause_strs[];
|
extern const struct value_string rsl_rlm_cause_strs[];
|
||||||
|
|
||||||
const char *rsl_err_name(uint8_t err);
|
const char *rsl_err_name(uint8_t err);
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,7 @@ uint8_t dbm2rxlev(int dbm)
|
||||||
return rxlev;
|
return rxlev;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *gsm_band_name(enum gsm_band band)
|
const char *gsm_band_name(enum gsm_band band)
|
||||||
{
|
{
|
||||||
switch (band) {
|
switch (band) {
|
||||||
case GSM_BAND_450:
|
case GSM_BAND_450:
|
||||||
|
|
Loading…
Reference in New Issue