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.h | |
parent | 3d93df54d024f49895db6277e873dccd10b5baec (diff) | |
download | ufo-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.h | 2 |
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) |