From 23f22348c5281fff685c1fa89255e7e1e76266a4 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 17 Nov 2019 10:46:03 +0100 Subject: cmake build and gcc warnings --- src/ufo-roof-build-task.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ufo-roof-build-task.c') 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)) { -- cgit v1.2.3