summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-02-28 17:53:43 +0100
committerHarald Welte <laforge@gnumonks.org>2010-02-28 17:53:43 +0100
commit60298c914133459574d276476b851627637e0a4c (patch)
tree5d7bfa0054e0e5ced837c45e299638b89c62df24 /src
parentca9f6eea61776dc35de36394e5207bfaff09d50f (diff)
ensure we always have 256bytes net data size, excluding 4 bytes headroom
Diffstat (limited to 'src')
-rw-r--r--src/target/firmware/comm/msgb.c2
-rw-r--r--src/target/firmware/include/comm/sercomm_cons.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/target/firmware/comm/msgb.c b/src/target/firmware/comm/msgb.c
index 51f00ff5..499060c3 100644
--- a/src/target/firmware/comm/msgb.c
+++ b/src/target/firmware/comm/msgb.c
@@ -35,7 +35,7 @@ void *tall_msgb_ctx;
#ifdef NO_TALLOC
/* This is a poor mans static allocator for msgb objects */
-#define MSGB_DATA_SIZE 256
+#define MSGB_DATA_SIZE 256+4
#define MSGB_NUM 16
struct supermsg {
uint8_t allocated;
diff --git a/src/target/firmware/include/comm/sercomm_cons.h b/src/target/firmware/include/comm/sercomm_cons.h
index 9682a998..11f66545 100644
--- a/src/target/firmware/include/comm/sercomm_cons.h
+++ b/src/target/firmware/include/comm/sercomm_cons.h
@@ -2,7 +2,7 @@
#define _SERCOMM_CONS_H
/* how large buffers do we allocate? */
-#define SERCOMM_CONS_ALLOC (256-4)
+#define SERCOMM_CONS_ALLOC 256
int sercomm_puts(const char *s);
int sercomm_putchar(int c);