The structures for message should be packed for communication. Add
explict packed attribute to the message struct.
Change-Id: I33ec2986a5caedf0dfa248b2e04c51ee75ae1520
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
int32_t int_data[14]; /* Int. Datas. */
char str_data[5][32]; /* Str. Data. */
char md5[32]; /* MD5 Checksum. */
-};
+} __attribute__((__packed__));
struct res_pkt {
int32_t ack; /* Ack. */
int32_t int_data[5]; /* Int. Datas. */
char str_data[3][32]; /* Str. Data. */
-};
+} __attribute__((__packed__));
struct data_res_pkt {
int32_t ack; /* Ack. */
int32_t cnt; /* Int. Datas. */
-};
+} __attribute__((__packed__));
#define RQT_PKT_SIZE sizeof(struct rqt_pkt)