summaryrefslogtreecommitdiff
path: root/src/apk_defines.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-06-07 19:49:15 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-06-11 13:35:32 +0300
commit7c9f001cda932c74164e8aaa6740dcb6d24aa62f (patch)
tree7f30f0cbfc1d9e6f43f9aff3807f83ab53240ead /src/apk_defines.h
parentcd9aef8f7cabdb09a7b6e6c4884b8e3db41b0962 (diff)
downloadapk-tools-7c9f001cda932c74164e8aaa6740dcb6d24aa62f.tar.gz
apk-tools-7c9f001cda932c74164e8aaa6740dcb6d24aa62f.tar.bz2
apk-tools-7c9f001cda932c74164e8aaa6740dcb6d24aa62f.tar.xz
apk-tools-7c9f001cda932c74164e8aaa6740dcb6d24aa62f.zip
mkpkg: new applet to create v2 packages with basic functionality
Diffstat (limited to 'src/apk_defines.h')
-rw-r--r--src/apk_defines.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/apk_defines.h b/src/apk_defines.h
index 92e97d8..3218277 100644
--- a/src/apk_defines.h
+++ b/src/apk_defines.h
@@ -191,14 +191,14 @@ APK_ARRAY(apk_string_array, char *);
#define LIST_POISON1 (void *) 0xdeadbeef
#define LIST_POISON2 (void *) 0xabbaabba
-struct hlist_head {
- struct hlist_node *first;
-};
-
struct hlist_node {
struct hlist_node *next;
};
+struct hlist_head {
+ struct hlist_node *first;
+};
+
static inline int hlist_empty(const struct hlist_head *h)
{
return !h->first;