diff mbox series

[2/4] image: preserve_attributes is a boolean flag

Message ID 20240425124620.51594-2-stefano.babic@swupdate.org
State Accepted
Headers show
Series [1/4] Parser: statify get_value_* | expand

Commit Message

Stefano Babic April 25, 2024, 12:46 p.m. UTC
Change type from int to bool.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
---
 include/swupdate_image.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.34.1
diff mbox series

Patch

diff --git a/include/swupdate_image.h b/include/swupdate_image.h
index 68d97a02..e214aafc 100644
--- a/include/swupdate_image.h
+++ b/include/swupdate_image.h
@@ -54,7 +54,7 @@  struct img_type {
 	skip_t skip;
 	int provided;
 	int compressed;
-	int preserve_attributes; /* whether to preserve attributes in archives */
+	bool preserve_attributes; /* whether to preserve attributes in archives */
 	bool is_encrypted;
 	char ivt_ascii[33];
 	int install_directly;