From 3b5afac9b433dd26f4461d4f59401bbb299219ec Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 21 Aug 2014 15:37:39 +0200 Subject: [PATCH] cleanup: use unsigned 1bit elements Avoid using signed 'int' type for 1 bit size. --- lib/config/config.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/config/config.h b/lib/config/config.h index 7b1d5b6d8..d095519b5 100644 --- a/lib/config/config.h +++ b/lib/config/config.h @@ -139,10 +139,10 @@ struct config_def_tree_spec { struct cmd_context *cmd; /* command context (for run-time defaults */ cfg_def_tree_t type; /* tree type */ uint16_t version; /* tree at this LVM2 version */ - int ignoreadvanced:1; /* do not include advanced configs */ - int ignoreunsupported:1; /* do not include unsupported configs */ - int withcomments:1; /* include comments */ - int withversions:1; /* include versions */ + unsigned ignoreadvanced:1; /* do not include advanced configs */ + unsigned ignoreunsupported:1; /* do not include unsupported configs */ + unsigned withcomments:1; /* include comments */ + unsigned withversions:1; /* include versions */ uint8_t *check_status; /* status of last tree check (currently needed for CFG_DEF_TREE_MISSING only) */ };