msgb: Fix -Wsign-compare warnings

Change-Id: I4bd14bb712fb3868b55d7e79d13276b707a6cdcb
This commit is contained in:
Harald Welte 2022-01-09 12:03:36 +01:00
parent 0b08d518f2
commit 494282f767
1 changed files with 2 additions and 2 deletions

View File

@ -426,11 +426,11 @@ int msgb_resize_area(struct msgb *msg, uint8_t *area,
*/
char *msgb_hexdump_buf(char *buf, size_t buf_len, const struct msgb *msg)
{
int buf_offs = 0;
unsigned int buf_offs = 0;
int nchars;
const unsigned char *start = msg->data;
const unsigned char *lxhs[4];
int i;
unsigned int i;
lxhs[0] = msg->l1h;
lxhs[1] = msg->l2h;