ensure we always have 256bytes net data size, excluding 4 bytes headroom

This commit is contained in:
Harald Welte 2010-02-28 17:53:43 +01:00
parent ca9f6eea61
commit 60298c9141
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);