/*
- * Copyright (C) 2005-2009 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2013 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
* \param item_handler Function to call for each complete item.
*
* \return Negative on errors, the number of bytes _not_ passed to \a
- * item_handler.
+ * item_handler on success.
*
* Status items are expected in the format used by parser-friendly output mode
* of the stat command of para_client/para_audioc.
assert(len >= 0 && buf <= item_buf + num_bytes);
}
assert(len >= 0);
- if (len && len != num_bytes)
- memmove(item_buf, item_buf + num_bytes - len, len);
return len;
}