From 30740d9d2fd859cbfa214a8bb3236ba73dedf159 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 2 Jan 2014 12:37:08 -0600 Subject: Minor struct member reordering for packing concerns Noticed using clang and `-Wpadded`. Signed-off-by: Dan McGee Signed-off-by: Allan McRae --- lib/libalpm/graph.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/graph.h') diff --git a/lib/libalpm/graph.h b/lib/libalpm/graph.h index 25605bef..f4045f5a 100644 --- a/lib/libalpm/graph.h +++ b/lib/libalpm/graph.h @@ -24,12 +24,12 @@ #include "alpm_list.h" typedef struct __alpm_graph_t { - char state; /* 0: untouched, -1: entered, other: leaving time */ - off_t weight; /* weight of the node */ void *data; struct __alpm_graph_t *parent; /* where did we come from? */ alpm_list_t *children; alpm_list_t *childptr; /* points to a child in children list */ + off_t weight; /* weight of the node */ + char state; /* 0: untouched, -1: entered, other: leaving time */ } alpm_graph_t; alpm_graph_t *_alpm_graph_new(void); -- cgit v1.2.3-24-g4f1b