aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2021-12-21 13:07:53 +0000
committernicm <nicm>2021-12-21 13:07:53 +0000
commitff64aafeabe0c9b51b33a10313e2027ae1686bc4 (patch)
tree9b704ec2867091b9e4988f5ac4cd852c3e5e4199 /tmux.h
parente4856de8bf23108ee9d335a22d7e16dd8ad855d8 (diff)
downloadrtmux-ff64aafeabe0c9b51b33a10313e2027ae1686bc4.tar.gz
rtmux-ff64aafeabe0c9b51b33a10313e2027ae1686bc4.tar.bz2
rtmux-ff64aafeabe0c9b51b33a10313e2027ae1686bc4.zip
ARM's Morello CHERI architecture does not support pointers in packed
structures, so remove the packed attribute on struct grid_line and reorder the members to eliminate unnecessary padding. From Jessica Clarke in GitHub issue 3012.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index e6a33104..4f8016d3 100644
--- a/tmux.h
+++ b/tmux.h
@@ -668,15 +668,15 @@ struct grid_cell_entry {
/* Grid line. */
struct grid_line {
+ struct grid_cell_entry *celldata;
u_int cellused;
u_int cellsize;
- struct grid_cell_entry *celldata;
- u_int extdsize;
struct grid_extd_entry *extddata;
+ u_int extdsize;
int flags;
-} __packed;
+};
/* Entire grid of cells. */
struct grid {