[Libguestfs] [libnbd PATCH 3/4] copy: fix layout of "long_options" table

Laszlo Ersek lersek at redhat.com
Fri Apr 14 07:59:55 UTC 2023


The "destination-is-zero" row is missing a space character between the
first two columns, in the "long_options" table; supply it. This increases
the max width of "copy/main.c" to 80 chars, so we're still good like that.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516
Signed-off-by: Laszlo Ersek <lersek at redhat.com>
---
 copy/main.c | 36 ++++++++++----------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/copy/main.c b/copy/main.c
index 8055b3a656ba..28ac0f319676 100644
--- a/copy/main.c
+++ b/copy/main.c
@@ -119,24 +119,24 @@ main (int argc, char *argv[])
   };
   const char *short_options = "C:pR:S:T:vV";
   const struct option long_options[] = {
-    { "help",               no_argument,       NULL, OPT_HELP },
-    { "long-options",       no_argument,       NULL, OPT_LONG_OPTIONS },
-    { "allocated",          no_argument,       NULL, OPT_ALLOCATED },
-    { "connections",        required_argument, NULL, 'C' },
-    { "destination-is-zero",no_argument,       NULL, OPT_DESTINATION_IS_ZERO },
-    { "flush",              no_argument,       NULL, OPT_FLUSH },
-    { "no-extents",         no_argument,       NULL, OPT_NO_EXTENTS },
-    { "progress",           optional_argument, NULL, 'p' },
-    { "queue-size",         required_argument, NULL, OPT_QUEUE_SIZE },
-    { "request-size",       required_argument, NULL, OPT_REQUEST_SIZE },
-    { "requests",           required_argument, NULL, 'R' },
-    { "short-options",      no_argument,       NULL, OPT_SHORT_OPTIONS },
-    { "sparse",             required_argument, NULL, 'S' },
-    { "synchronous",        no_argument,       NULL, OPT_SYNCHRONOUS },
-    { "target-is-zero",     no_argument,       NULL, OPT_DESTINATION_IS_ZERO },
-    { "threads",            required_argument, NULL, 'T' },
-    { "verbose",            no_argument,       NULL, 'v' },
-    { "version",            no_argument,       NULL, 'V' },
+    { "help",                no_argument,       NULL, OPT_HELP },
+    { "long-options",        no_argument,       NULL, OPT_LONG_OPTIONS },
+    { "allocated",           no_argument,       NULL, OPT_ALLOCATED },
+    { "connections",         required_argument, NULL, 'C' },
+    { "destination-is-zero", no_argument,       NULL, OPT_DESTINATION_IS_ZERO },
+    { "flush",               no_argument,       NULL, OPT_FLUSH },
+    { "no-extents",          no_argument,       NULL, OPT_NO_EXTENTS },
+    { "progress",            optional_argument, NULL, 'p' },
+    { "queue-size",          required_argument, NULL, OPT_QUEUE_SIZE },
+    { "request-size",        required_argument, NULL, OPT_REQUEST_SIZE },
+    { "requests",            required_argument, NULL, 'R' },
+    { "short-options",       no_argument,       NULL, OPT_SHORT_OPTIONS },
+    { "sparse",              required_argument, NULL, 'S' },
+    { "synchronous",         no_argument,       NULL, OPT_SYNCHRONOUS },
+    { "target-is-zero",      no_argument,       NULL, OPT_DESTINATION_IS_ZERO },
+    { "threads",             required_argument, NULL, 'T' },
+    { "verbose",             no_argument,       NULL, 'v' },
+    { "version",             no_argument,       NULL, 'V' },
     { NULL }
   };
   int c;



More information about the Libguestfs mailing list