diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-09-05 23:59:26 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2020-01-05 22:37:36 +0100 |
commit | 7e8f638a966e3c17db4ad1be2f1e6e0021886423 (patch) | |
tree | 071b2bc3246579feda1af8e53d04a09791a53cb8 | |
parent | fab0e477eee2d54d5b550a3d5f3de25638b52318 (diff) | |
download | nx-libs-7e8f638a966e3c17db4ad1be2f1e6e0021886423.tar.gz nx-libs-7e8f638a966e3c17db4ad1be2f1e6e0021886423.tar.bz2 nx-libs-7e8f638a966e3c17db4ad1be2f1e6e0021886423.zip |
Dialog.c: use designated initializer
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Dialog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Dialog.c b/nx-X11/programs/Xserver/hw/nxagent/Dialog.c index def3c86c5..c20a6a475 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Dialog.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Dialog.c @@ -376,10 +376,10 @@ void nxagentFailedReconnectionDialog(int alert, char *error) while (NXDisplayError(nxagentDisplay) == 0 && NXTransRunning(NX_FD_ANY) == 1) { - struct timeval timeout; - - timeout.tv_sec = 30; - timeout.tv_usec = 0; + struct timeval timeout = { + .tv_sec = 30, + .tv_usec = 0, + }; NXTransContinue(&timeout); } |