summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-11-09 13:41:48 +0100
committerHarald Welte <laforge@gnumonks.org>2010-11-09 13:41:48 +0100
commit46a45a6c4f9309164ef0484a6f15b7ae9cac1236 (patch)
treefcb54d59e71e66460fc4fc748bf0fbe10e89c918 /include
parentbe6cb17228e967a9dbd05e70e63145efaa9f6460 (diff)
msgb: don't compare unsigned int with int (fix lcr build)
Diffstat (limited to 'include')
-rw-r--r--include/osmocore/msgb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocore/msgb.h b/include/osmocore/msgb.h
index 5a88ac64..9b58e33b 100644
--- a/include/osmocore/msgb.h
+++ b/include/osmocore/msgb.h
@@ -109,7 +109,7 @@ static inline int msgb_headroom(const struct msgb *msgb)
static inline unsigned char *msgb_put(struct msgb *msgb, unsigned int len)
{
unsigned char *tmp = msgb->tail;
- if (msgb_tailroom(msgb) < len)
+ if (msgb_tailroom(msgb) < (int) len)
MSGB_ABORT(msgb, "Not enough tailroom msgb_push (%u < %u)\n",
msgb_tailroom(msgb), len);
msgb->tail += len;
@@ -159,7 +159,7 @@ static inline uint32_t msgb_get_u32(struct msgb *msgb)
}
static inline unsigned char *msgb_push(struct msgb *msgb, unsigned int len)
{
- if (msgb_headroom(msgb) < len)
+ if (msgb_headroom(msgb) < (int) len)
MSGB_ABORT(msgb, "Not enough headroom msgb_push (%u < %u)\n",
msgb_headroom(msgb), len);
msgb->data -= len;