fix auth read
This commit is contained in:
+2
-2
@@ -39,8 +39,8 @@ typedef struct com_buf {
|
||||
p_v->flags = p_f | COM_BUF_STACK; \
|
||||
p_v->typesz = sizeof(p_t);
|
||||
|
||||
#define com_buf_index(p_t, p_v, p_i) \
|
||||
(p_t *)(&(p_v)->data[(p_v)->typesz * (p_i)])
|
||||
#define com_buf_index_as(p_t, p_v, p_i) \
|
||||
(p_t *)(&(p_v)->data[sizeof(p_t) * (p_i)])
|
||||
|
||||
/* Dynamic allocation to persist no matter the function flow. */
|
||||
struct com_buf *com_buf_make(uint32_t cap, uint32_t flags);
|
||||
|
||||
Reference in New Issue
Block a user