aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-12-19 14:51:33 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2022-12-19 14:52:44 +0100
commit09e62cc563bfeffe0340a6f4458d14cba1658458 (patch)
tree54ac589b66b4dfd4c3b2c79a52de9f302e9079fe
parenta7af7ecf0b5d475c5748a5330efb3d5ccb166c3b (diff)
amr: osmo_amr_bwe_to_oa() define variable as unsigned
There's no need to have the variable as signed anymore since the loop was modified in the previous patch. osmo_amr_bytes() returns a size_t (unsigned). Change-Id: I8aa6b5f6d3334e152a62b7c28aac3f881f027894
-rw-r--r--src/amr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amr.c b/src/amr.c
index 8cd856d..a40e496 100644
--- a/src/amr.c
+++ b/src/amr.c
@@ -194,7 +194,7 @@ int osmo_amr_bwe_to_oa(uint8_t *payload, unsigned int payload_len,
/* The header is only valid after shifting first two bytes to OA mode */
struct amr_hdr *oa_hdr;
unsigned int i;
- int oa_payload_len;
+ unsigned int oa_payload_len;
memset(buf, 0, sizeof(buf));