diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-11-17 10:46:03 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-11-17 10:46:03 +0100 |
commit | 23f22348c5281fff685c1fa89255e7e1e76266a4 (patch) | |
tree | fb05ad7fb39357ff8785068b3a1512101d685f41 /src/ufo-roof-build-task.c | |
parent | 3d93df54d024f49895db6277e873dccd10b5baec (diff) | |
download | ufo-roof-temp-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.gz ufo-roof-temp-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.bz2 ufo-roof-temp-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.xz ufo-roof-temp-23f22348c5281fff685c1fa89255e7e1e76266a4.zip |
cmake build and gcc warnings
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)) { |