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

Submitted by marcandre.lureau@redhat.com on March 22, 2019, 3:12 p.m.

Details

Message ID 20190322151246.17766-8-marcandre.lureau@redhat.com
State New
Headers show
Series "Clipboard improvements" ( rev: 2 ) in Spice

Not browsing as part of any series.

Commit Message

marcandre.lureau@redhat.com March 22, 2019, 3:12 p.m.
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Improve readability a bit, reindent slightly.

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

Patch hide | download patch | download mbox

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 }