Kaynağa Gözat

Use packed structures

master
Arun Prakash Jana 5 yıl önce
ebeveyn
işleme
eb9faf0832
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: A75979F35C080412
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. +2
    -2
      src/nnn.c
  2. +1
    -1
      src/nnn.h

+ 2
- 2
src/nnn.c Dosyayı Görüntüle

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



+ 1
- 1
src/nnn.h Dosyayı Görüntüle

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

static struct key bindings[] = {
/* Back */


Yükleniyor…
İptal
Kaydet