summaryrefslogtreecommitdiffstats
path: root/src/ufo-roof.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-11-17 10:46:03 +0100
committerSuren A. Chilingaryan <csa@suren.me>2019-11-17 10:46:03 +0100
commit23f22348c5281fff685c1fa89255e7e1e76266a4 (patch)
treefb05ad7fb39357ff8785068b3a1512101d685f41 /src/ufo-roof.h
parent3d93df54d024f49895db6277e873dccd10b5baec (diff)
downloadufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.gz
ufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.bz2
ufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.xz
ufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.zip
cmake build and gcc warnings
Diffstat (limited to 'src/ufo-roof.h')
-rw-r--r--src/ufo-roof.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ufo-roof.h b/src/ufo-roof.h
index c3edda2..d9d3a57 100644
--- a/src/ufo-roof.h
+++ b/src/ufo-roof.h
@@ -5,7 +5,7 @@
#include "ufo-roof-error.h"
#define UFO_ROOF_PACKET_HEADER(buf) ((UfoRoofPacketHeader*)(buf))
-#define UFO_ROOF_PACKET_BLOCK_HEADER(buf, cfg) ((UfoRoofPacketBlockHeader*)(((void*)buf) + cfg->max_packets * cfg->max_packet_size))
+#define UFO_ROOF_PACKET_BLOCK_HEADER(buf, cfg) ((UfoRoofPacketBlockHeader*)(((uint8_t*)buf) + cfg->max_packets * cfg->max_packet_size))
typedef struct {
uint32_t packet_id; // Sequential Packet ID (numbered from 0)