Use packed structures

This commit is contained in:
Arun Prakash Jana 2019-03-07 19:23:23 +05:30
parent 0c63f474a3
commit eb9faf0832
No known key found for this signature in database
GPG Key ID: A75979F35C080412
2 changed files with 3 additions and 3 deletions

View File

@ -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 */

View File

@ -103,7 +103,7 @@ enum action {
struct key {
int sym; /* Key pressed */
enum action act; /* Action */
};
} __attribute__ ((packed));
static struct key bindings[] = {
/* Back */