diff options
author | Dan McGee <dan@archlinux.org> | 2014-01-02 19:37:08 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-01-06 05:38:50 +0100 |
commit | 30740d9d2fd859cbfa214a8bb3236ba73dedf159 (patch) | |
tree | ed96e6c4752fd2d9019ea2700896a27d9500f35d /lib/libalpm/graph.h | |
parent | 086bbc5b623d08df9ffe595bd5ee965e668a4ae1 (diff) | |
download | pacman-30740d9d2fd859cbfa214a8bb3236ba73dedf159.tar.gz pacman-30740d9d2fd859cbfa214a8bb3236ba73dedf159.tar.xz |
Minor struct member reordering for packing concerns
Noticed using clang and `-Wpadded`.
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/graph.h')
-rw-r--r-- | lib/libalpm/graph.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |