Recipients of sample data as received from the data feed should consider
this data read-only, they are handed a reference to a message which is
also sent to other recipients.
Add the 'const' decoration in the output/srzip module to raise awareness
during future maintenance.
* @returns SR_OK et al error codes.
*/
static int zip_append_queue(const struct sr_output *o,
- uint8_t *buf, size_t unitsize, size_t length, gboolean flush)
+ const uint8_t *buf, size_t unitsize, size_t length, gboolean flush)
{
struct out_context *outc;
struct logic_buff *buff;
size_t send_size, remain, copy_size;
- uint8_t *wrptr, *rdptr;
+ const uint8_t *rdptr;
+ uint8_t *wrptr;
int ret;
outc = o->priv;