]> sourceware.org Git - lvm2.git/commitdiff
cleanup: use unsigned 1bit elements
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 21 Aug 2014 13:37:39 +0000 (15:37 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 26 Aug 2014 12:13:06 +0000 (14:13 +0200)
Avoid using signed 'int' type for 1 bit size.

lib/config/config.h

index 7b1d5b6d808e61b3979c41eb4d1fcdd46c416926..d095519b5b48d5d6ae28196ef7ee58285c053b27 100644 (file)
@@ -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) */
 };
 
This page took 0.03598 seconds and 5 git commands to generate.