diff options
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) |