diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-02-06 18:53:47 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-02-06 18:53:47 +0100 |
commit | 44284c82189845f22b6b3e8a93b7b2822e5b0742 (patch) | |
tree | 873123e49abe3d870e2da3d81c4e233c73c46b15 /pkt.h | |
parent | 3d228074abb4b41e30dd7e8266f87f967b304ba8 (diff) |
pkt: Fix variable typo
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'pkt.h')
-rw-r--r-- | pkt.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |