kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit d2618db525a57574d4ad7be617eb8754218f8317
parent 109c17fe5d1321b60f4ecbd5903703450989dfb1
Author: Joris Vink <joris@coders.se>
Date:   Fri, 18 Apr 2014 17:41:56 +0200

Kill __packed__ attributes on some data structs

Diffstat:
includes/kore.h | 7+++----
src/mem.c | 2+-
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/includes/kore.h b/includes/kore.h @@ -287,15 +287,14 @@ struct buf_vec { struct kore_pool_region { void *start; - LIST_ENTRY(kore_pool_region) list; -} __attribute__((__packed__)); +}; struct kore_pool_entry { u_int8_t state; struct kore_pool_region *region; LIST_ENTRY(kore_pool_entry) list; -} __attribute__((__packed__)); +}; struct kore_pool { u_int32_t elen; @@ -306,7 +305,7 @@ struct kore_pool { LIST_HEAD(, kore_pool_region) regions; LIST_HEAD(, kore_pool_entry) freelist; -} __attribute__((__packed__)); +}; extern pid_t kore_pid; extern int kore_debug; diff --git a/src/mem.c b/src/mem.c @@ -28,7 +28,7 @@ struct meminfo { u_int16_t magic; -} __attribute__((__packed__)); +}; void kore_mem_init(void)