diff options
Diffstat (limited to 'pkt.h')
-rw-r--r-- | pkt.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -47,10 +47,7 @@ static inline struct pkt *pkt_alloc(size_t size) struct pkt *p = xmalloc(sizeof(*q) + size); uint8_t *data = (uint8_t *)p + sizeof(*p); - p->head = data; - p->data = data; - p->tail = data + size; - p->size = size; + p->head = p->data = p->tail = data; return p; } |