aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-11 20:08:03 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-11 20:08:03 +0530
commit8882aa802286a98287f066cc316bd6f17bf58b81 (patch)
treece20274e7711f8eabd41a6714f89f113863ab1df /src
parentb95d1de4c5cd9869e3fd3db21cc933a27bf1b864 (diff)
downloadnnn-8882aa802286a98287f066cc316bd6f17bf58b81.tar.gz
No need to use packed structs
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c6
-rw-r--r--src/nnn.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 0857806..1f50339 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -267,13 +267,13 @@ typedef struct entry {
mode_t mode;
ushort nlen; /* Length of file name; can be uchar (< NAME_MAX + 1) */
uchar flags; /* Flags specific to the file */
-} __attribute__ ((packed, aligned(_ALIGNMENT))) *pEntry;
+} __attribute__ ((aligned(_ALIGNMENT))) *pEntry;
/* Bookmark */
typedef struct {
int key;
char *loc;
-} __attribute__ ((packed)) bm;
+} bm;
/* Settings */
typedef struct {
@@ -311,7 +311,7 @@ typedef struct {
char c_name[NAME_MAX + 1]; /* Current file name */
settings c_cfg; /* Current configuration */
uint color; /* Color code for directories */
-} __attribute__ ((packed)) context;
+} context;
/* GLOBALS */
diff --git a/src/nnn.h b/src/nnn.h
index c593685..a2a858b 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -102,7 +102,7 @@ enum action {
struct key {
int sym; /* Key pressed */
enum action act; /* Action */
-} __attribute__ ((packed));
+};
static struct key bindings[] = {
/* Back */