Dataman: Do nnot pack structs to avoid reading back wrong values on existing systems

This commit is contained in:
Lorenz Meier
2016-10-18 00:26:40 +02:00
parent ecbe8c2179
commit c2285c84a9
-3
View File
@@ -107,18 +107,15 @@ 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(