From: Petr Rockai <mornfall@fedoraproject.org>
To: lvm-devel@redhat.com
Subject: dev-mornfall-activate - config: fix bitfield for section
Date: Tue, 4 Jun 2013 19:25:49 +0000 (UTC) [thread overview]
Message-ID: <20130604192549.A14736115D@fedorahosted.org> (raw)
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=f319a61e9c374bd3277deba90216f67fdcb505e9
Commit: f319a61e9c374bd3277deba90216f67fdcb505e9
Parent: 2ac217d408470dcecb69b83d9cbf7a254747fa5b
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Mon Apr 29 12:38:56 2013 +0200
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Fri May 3 15:42:44 2013 +0200
config: fix bitfield for section
Since the cfg_def_type_t is used as bitfield in some tests,
use bitshifting to create valid bit sequence.
(in release fix)
---
lib/config/config.h | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/config/config.h b/lib/config/config.h
index 7e40420..155d69a 100644
--- a/lib/config/config.h
+++ b/lib/config/config.h
@@ -34,12 +34,12 @@ struct cmd_context;
/* configuration definition item type (for item's accepted types) */
typedef enum {
- CFG_TYPE_SECTION = 0, /* section */
- CFG_TYPE_ARRAY = 1, /* setting */
- CFG_TYPE_BOOL = 2, /* setting */
- CFG_TYPE_INT = 4, /* setting */
- CFG_TYPE_FLOAT = 8, /* setting */
- CFG_TYPE_STRING = 16 /* setting */
+ CFG_TYPE_SECTION = 1 << 0, /* section */
+ CFG_TYPE_ARRAY = 1 << 1, /* setting */
+ CFG_TYPE_BOOL = 1 << 2, /* setting */
+ CFG_TYPE_INT = 1 << 3, /* setting */
+ CFG_TYPE_FLOAT = 1 << 4, /* setting */
+ CFG_TYPE_STRING = 1 << 5, /* setting */
} cfg_def_type_t;
/* configuration definition item value (for item's default value) */
reply other threads:[~2013-06-04 19:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130604192549.A14736115D@fedorahosted.org \
--to=mornfall@fedoraproject.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.