From beb4de21bb0709154b227821dd090e797d256ce5 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Tue, 18 Jul 2017 17:12:46 +0300 Subject: [PATCH] Removed NXT_PACKED from port structures. That was added only to silence Valgrind, but it results in unaligned access (which breaks Unit on ARM architecture). --- src/nxt_port.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nxt_port.h b/src/nxt_port.h index cd28d4f3..c057007f 100644 --- a/src/nxt_port.h +++ b/src/nxt_port.h @@ -32,7 +32,7 @@ typedef struct { /* Message data send using mmap, next chunk is a nxt_port_mmap_msg_t. */ uint8_t mmap; /* 1 bit */ -} NXT_PACKED nxt_port_msg_t; +} nxt_port_msg_t; typedef struct { @@ -99,7 +99,7 @@ typedef struct { size_t max_size; size_t max_share; nxt_process_type_t type:8; -} NXT_PACKED nxt_port_msg_new_port_t; +} nxt_port_msg_new_port_t; /*