aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c4
-rw-r--r--src/nnn.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index f1c846b..515aa46 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -269,7 +269,7 @@ typedef struct entry {
typedef struct {
int key;
char *loc;
-} bm;
+} __attribute__ ((packed)) bm;
/* Settings */
typedef struct {
@@ -307,7 +307,7 @@ typedef struct {
char c_name[NAME_MAX + 1]; /* Current file name */
settings c_cfg; /* Current configuration */
uint color; /* Color code for directories */
-} context;
+} __attribute__ ((packed)) context;
/* GLOBALS */
diff --git a/src/nnn.h b/src/nnn.h
index b535639..d278466 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -103,7 +103,7 @@ enum action {
struct key {
int sym; /* Key pressed */
enum action act; /* Action */
-};
+} __attribute__ ((packed));
static struct key bindings[] = {
/* Back */