pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/34461?usp=email )
Change subject: sccp2sua: constify params of sccp_ptr_part_consistent() ......................................................................
sccp2sua: constify params of sccp_ptr_part_consistent()
Change-Id: I8011e5cf26d535120829c3925693a2bb3efdb864 --- M src/sccp2sua.c 1 file changed, 11 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/61/34461/1
diff --git a/src/sccp2sua.c b/src/sccp2sua.c index f18ebd7..59cb64b 100644 --- a/src/sccp2sua.c +++ b/src/sccp2sua.c @@ -431,9 +431,9 @@ * \param[in] msg Message containing SCCP address * \param[in] ptr_addr pointer to byte with relative SCCP pointer * \returns true if OK; false if message inconsistent */ -static bool sccp_ptr_part_consistent(struct msgb *msg, uint8_t *ptr_addr) +static bool sccp_ptr_part_consistent(const struct msgb *msg, const uint8_t *ptr_addr) { - uint8_t *ptr; + const uint8_t *ptr;
/* check the address of the relative pointer is within msg */ if (ptr_addr < msg->data || ptr_addr > msg->tail) {