if (ret < 0)
return ret;
} else
- buf = vss_get_header(&len);
+ vss_get_header(&buf, &len);
if (cq->num_pending + len > cq->max_pending)
return -E_QUEUE;
qc = para_malloc(sizeof(struct queued_chunk));
if (ret < 0)
return ret;
} else
- *buf = vss_get_header(len);
+ vss_get_header(buf, len);
assert(*len > qc->sent);
*buf += qc->sent;
*len -= qc->sent;