/*
- * Copyright (C) 2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2007-2008 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
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;