diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-01-05 13:16:34 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-01-05 14:12:06 +0000 |
commit | 9b6c149e42e6b891ca461b19f04451c81309cbed (patch) | |
tree | 472805ffd3741e32713398f1b3fcfaf774b3135c | |
parent | l1sap: fix: enable UL SACCH repetition if RxQual threshold is 0 (diff) | |
download | OsmoBTS-9b6c149e42e6b891ca461b19f04451c81309cbed.tar.xz OsmoBTS-9b6c149e42e6b891ca461b19f04451c81309cbed.zip |
sysinfo: fix less-than-zero comparison of an unsigned value
size_t is an unsigned type, while get_si4_ro_offset() returns int.
Change-Id: I3b216b70fbcc653ced734835ccb2c7f1932d9f0a
Fixes: CID#215888
-rw-r--r-- | src/common/sysinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sysinfo.c b/src/common/sysinfo.c index 9eea5396..d1f6f364 100644 --- a/src/common/sysinfo.c +++ b/src/common/sysinfo.c @@ -240,8 +240,8 @@ int get_si4_ro_offset(const uint8_t *si4_buf) void regenerate_si4_restoctets(struct gsm_bts *bts) { uint8_t *si4_buf = GSM_BTS_SI(bts, SYSINFO_TYPE_4); - size_t si4_size; struct osmo_gsm48_si_ro_info si4ro_tmp; + int si4_size; /* If BSC has never set SI4, there's nothing to patch */ if (!GSM_BTS_HAS_SI(bts, SYSINFO_TYPE_4)) |