pkg_hash: remove accidentally committed stuff
authorDaniel Golle <daniel@makrotopia.org>
Mon, 2 Nov 2020 20:30:01 +0000 (20:30 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 2 Nov 2020 20:32:11 +0000 (20:32 +0000)
Forgot to 'git add'...

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libopkg/pkg.h
libopkg/pkg_hash.c

index 4ce13ea69d131ede6423a6f8bd1d4f45e94e4c71..937439e021c789b2d2ee65f1cf1865694777ecd1 100644 (file)
@@ -106,16 +106,17 @@ enum pkg_fields {
 struct abstract_pkg {
        char *name;
        pkg_vec_t *pkgs;
-       int dependencies_checked:1;
-       pkg_state_status_t state_status:4;
-       pkg_state_flag_t state_flag:11;
 
        /* XXX: This should be abstract_pkg_vec_t for consistency. */
        struct abstract_pkg **depended_upon_by;
 
        abstract_pkg_vec_t *provided_by;
        abstract_pkg_vec_t *replaced_by;
-} __attribute__((__packed__)) ;
+
+       int dependencies_checked:1;
+       pkg_state_status_t state_status:4;
+       pkg_state_flag_t state_flag:11;
+};
 
 #include "pkg_depends.h"
 
index f3ff4bafd1b70985172051fa8a7f0c28fd358d4f..098206d03853e9e18496ac02cb8d08f18a3be58e 100644 (file)
@@ -275,7 +275,7 @@ int pkg_hash_load_package_details(void)
 }
 
 static int
-pkg_hash_check_unresolved(const pkg_t *maybe)
+pkg_hash_check_unresolved(pkg_t *maybe)
 {
        char **unresolved = NULL;
        char **tmp;