diff options
| author | 2019-03-07 19:23:23 +0530 | |
|---|---|---|
| committer | 2019-03-08 04:49:43 +0530 | |
| commit | eb9faf083292d14357cd6d803ba4fd570e31a225 (patch) | |
| tree | 11a2c3bf8a34b4873584932f626907540666114b /src | |
| parent | 0c63f474a3925dc870dca09d48f1a228dd98105b (diff) | |
| download | nnn-eb9faf083292d14357cd6d803ba4fd570e31a225.tar.gz | |
Use packed structures
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 4 | ||||
| -rw-r--r-- | src/nnn.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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 */ @@ -103,7 +103,7 @@ enum action { struct key { int sym; /* Key pressed */ enum action act; /* Action */ -}; +} __attribute__ ((packed)); static struct key bindings[] = { /* Back */ |