summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-02-06 18:53:47 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-02-06 18:53:47 +0100
commit44284c82189845f22b6b3e8a93b7b2822e5b0742 (patch)
tree873123e49abe3d870e2da3d81c4e233c73c46b15
parent3d228074abb4b41e30dd7e8266f87f967b304ba8 (diff)
pkt: Fix variable typo
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--pkt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkt.h b/pkt.h
index 04302f3..7a5d9be 100644
--- a/pkt.h
+++ b/pkt.h
@@ -44,7 +44,7 @@ static inline bool pkt_invariant(struct pkt *p)
static inline struct pkt *pkt_alloc(size_t size)
{
- struct pkt *p = xmalloc(sizeof(*q) + size);
+ struct pkt *p = xmalloc(sizeof(*p) + size);
uint8_t *data = (uint8_t *)p + sizeof(*p);
p->head = p->data = p->tail = data;