Packed union to save more space

This commit is contained in:
David Sidrane
2016-10-18 00:23:58 +02:00
committed by Lorenz Meier
parent 86ec703620
commit ecbe8c2179
+3
View File
@@ -107,15 +107,18 @@ typedef enum {
* defined by adding the structure type to the union below
*/
#pragma pack(push, 1)
typedef union dataman_max_size_t {
struct mission_item_s mission_item;
struct mission_s mission;
struct fence_vertex_s vertex;
} dataman_max_size_t;
#pragma pack(pop)
#define DM_MAX_DATA_SIZE sizeof(dataman_max_size_t)
/** Retrieve from the data manager store */
__EXPORT ssize_t
dm_read(