[PATCH linux/vd-agent 07/11] vdagent: use G_OPTION_FLAG_NONE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>

Improve readability a bit, reindent slightly.

Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
---
 src/vdagent/vdagent.c | 37 ++++++++++++++++++++++---------------
 1 file changed, 22 insertions(+), 15 deletions(-)

diff --git a/src/vdagent/vdagent.c b/src/vdagent/vdagent.c
index 13ef29f..61aeac7 100644
--- a/src/vdagent/vdagent.c
+++ b/src/vdagent/vdagent.c
@@ -66,25 +66,32 @@ static gchar *portdev = NULL;
 static gchar *vdagentd_socket = NULL;
 
 static GOptionEntry entries[] = {
-    { "debug", 'd', 0,
-       G_OPTION_ARG_NONE, &debug,
-       "Enable debug", NULL },
-    { "virtio-serial-port-path", 's', 0,
+    { "debug", 'd',
+      G_OPTION_FLAG_NONE,
+      G_OPTION_ARG_NONE, &debug,
+      "Enable debug", NULL },
+    { "virtio-serial-port-path", 's',
+      G_OPTION_FLAG_NONE,
       G_OPTION_ARG_STRING, &portdev,
       "Set virtio-serial path ("  DEFAULT_VIRTIO_PORT_PATH ")", NULL },
-    { "vdagentd-socket", 'S', 0, G_OPTION_ARG_STRING,
-       &vdagentd_socket,
-       "Set spice-vdagentd socket (" VDAGENTD_SOCKET ")", NULL },
-    { "foreground", 'x', G_OPTION_FLAG_REVERSE,
-       G_OPTION_ARG_NONE, &do_daemonize,
-       "Do not daemonize the agent", NULL },
-    { "file-xfer-save-dir", 'f', 0,
+    { "vdagentd-socket", 'S',
+      G_OPTION_FLAG_NONE,
+      G_OPTION_ARG_STRING, &vdagentd_socket,
+      "Set spice-vdagentd socket (" VDAGENTD_SOCKET ")", NULL },
+    { "foreground", 'x',
+      G_OPTION_FLAG_REVERSE,
+      G_OPTION_ARG_NONE, &do_daemonize,
+      "Do not daemonize the agent", NULL },
+    { "file-xfer-save-dir", 'f',
+      G_OPTION_FLAG_NONE,
       G_OPTION_ARG_STRING, &fx_dir,
       "Set directory to file transfers files", "<dir|xdg-desktop|xdg-download>"},
-    { "file-xfer-open-dir", 'o', 0,
-       G_OPTION_ARG_INT, &fx_open_dir,
-       "Open directory after completing file transfer", "<0|1>" },
-    { "x11-abort-on-error", 'y', G_OPTION_FLAG_HIDDEN,
+    { "file-xfer-open-dir", 'o',
+      G_OPTION_FLAG_NONE,
+      G_OPTION_ARG_INT, &fx_open_dir,
+      "Open directory after completing file transfer", "<0|1>" },
+    { "x11-abort-on-error", 'y',
+      G_OPTION_FLAG_HIDDEN,
       G_OPTION_ARG_NONE, &x11_sync,
       "Aborts on errors from X11", NULL },
     { NULL }
-- 
2.21.0.4.g36eb1cb9cf

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]