summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include/comm
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-02-21 18:33:14 +0100
committerHarald Welte <laforge@gnumonks.org>2010-02-21 18:33:14 +0100
commit8570a2ccd887b0c382fb8bd11aed00c19a16e47d (patch)
tree09c3ceb63c494dbdf56e70f0e5d0f8ca21ff3d73 /src/target/firmware/include/comm
parente943638a926a09e82fb56e18a1ca8ec14f2e1681 (diff)
fix msgb_talroom() calculation
Diffstat (limited to 'src/target/firmware/include/comm')
-rw-r--r--src/target/firmware/include/comm/msgb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/firmware/include/comm/msgb.h b/src/target/firmware/include/comm/msgb.h
index f7c9d147..d9d518e8 100644
--- a/src/target/firmware/include/comm/msgb.h
+++ b/src/target/firmware/include/comm/msgb.h
@@ -82,7 +82,7 @@ static inline unsigned char *msgb_pull(struct msgb *msgb, unsigned int len)
}
static inline int msgb_tailroom(const struct msgb *msgb)
{
- return (msgb->data + msgb->data_len) - msgb->tail;
+ return (msgb->head + msgb->data_len) - msgb->tail;
}
/* increase the headroom of an empty msgb, reducing the tailroom */