summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-07-18 17:12:46 +0300
committerValentin Bartenev <vbart@nginx.com>2017-07-18 17:12:46 +0300
commitbeb4de21bb0709154b227821dd090e797d256ce5 (patch)
treebbd8c3c2b981ac97a3c2f7da532e7916bf54bc71 /src/nxt_port.h
parent6b6fefa497fac704c729fcd784f0e2561ba9656a (diff)
downloadunit-beb4de21bb0709154b227821dd090e797d256ce5.tar.gz
unit-beb4de21bb0709154b227821dd090e797d256ce5.tar.bz2
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).
Diffstat (limited to 'src/nxt_port.h')
-rw-r--r--src/nxt_port.h4
1 files 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;
/*