diff options
Diffstat (limited to 'src/ufo-roof-build-task.c')
-rw-r--r-- | src/ufo-roof-build-task.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ufo-roof-build-task.c b/src/ufo-roof-build-task.c index 81c84ce..fa2fdcd 100644 --- a/src/ufo-roof-build-task.c +++ b/src/ufo-roof-build-task.c @@ -162,14 +162,14 @@ ufo_roof_build_task_process (UfoTask *task, // UfoRequisition in_req; // ufo_buffer_get_requisition (inputs[0], &in_req); - void *data = ufo_buffer_get_host_array(inputs[0], NULL); + uint8_t *data = (uint8_t*)ufo_buffer_get_host_array(inputs[0], NULL); UfoRoofPacketBlockHeader *header = UFO_ROOF_PACKET_BLOCK_HEADER(data, cfg); if (priv->stop) return FALSE; - for (int i = 0; i < header->n_packets; i++) { - int packet_id = 0; + for (guint i = 0; i < header->n_packets; i++) { + guint packet_id = 0; // Otherwise considered consecutive and handled by the buffer if (cfg->header_size >= sizeof(UfoRoofPacketHeader)) { |