From 11ee06ea67ebe6a6f11323ad5a6d3c77071488cd Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 2 Nov 2020 20:35:50 +0000 Subject: [PATCH] libopkg: fix removal of packages The 'dependencies_checked' field in struct abstract_pkg is also used when removing packages, and in that case it is set to '2'. Make the field wide enough to be able to contain that value. Fixes: 532f92d ("libopkg: tighten length of fields in struct abstract_pkg") Signed-off-by: Daniel Golle --- libopkg/pkg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopkg/pkg.h b/libopkg/pkg.h index 937439e..21108b3 100644 --- a/libopkg/pkg.h +++ b/libopkg/pkg.h @@ -113,7 +113,7 @@ struct abstract_pkg { abstract_pkg_vec_t *provided_by; abstract_pkg_vec_t *replaced_by; - int dependencies_checked:1; + int dependencies_checked:2; pkg_state_status_t state_status:4; pkg_state_flag_t state_flag:11; }; -- 2.30.2