All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - toolcontext.h: use bit field in struct
Date: Thu, 12 Aug 2021 20:53:07 +0000 (GMT)	[thread overview]
Message-ID: <20210812205307.0CF4E3833003@sourceware.org> (raw)

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e5c0562654b8449f91c423e92e9b78d4ce986dc3
Commit:        e5c0562654b8449f91c423e92e9b78d4ce986dc3
Parent:        59209ef04944e8f8fac2836be1d875a080c58a9e
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Thu Aug 12 15:51:43 2021 -0500
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Thu Aug 12 15:51:43 2021 -0500

toolcontext.h: use bit field in struct

Two recent additions should have used a bit instead
of an entire int.
---
 lib/commands/toolcontext.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/commands/toolcontext.h b/lib/commands/toolcontext.h
index 0911b05f1..1a1785bfe 100644
--- a/lib/commands/toolcontext.h
+++ b/lib/commands/toolcontext.h
@@ -193,8 +193,8 @@ struct cmd_context {
 	unsigned run_by_dmeventd:1;		/* command is being run by dmeventd */
 	unsigned sysinit:1;			/* --sysinit is used */
 	unsigned check_devs_used:1;		/* check devs used by LVs */
-	unsigned print_device_id_not_found;	/* print devices file entries not found */
-	unsigned ignore_device_name_mismatch;   /* skip updating devices file names */
+	unsigned print_device_id_not_found:1;	/* print devices file entries not found */
+	unsigned ignore_device_name_mismatch:1; /* skip updating devices file names */
 
 	/*
 	 * Devices and filtering.



                 reply	other threads:[~2021-08-12 20:53 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=20210812205307.0CF4E3833003@sourceware.org \
    --to=teigland@sourceware.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.