diff options
author | Simon Matter <simon.matter@invoca.ch> | 2018-02-21 23:49:55 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-02-26 13:02:00 +0100 |
commit | eded33173b275b08277811c6b7bbb6dcd4949975 (patch) | |
tree | b3d82aaf07722d9454bd9da524fe7f3da81d97c9 /nx-X11/programs | |
parent | 7c32938ac5b803a1630920dd027be33df07aa3df (diff) | |
download | nx-libs-eded33173b275b08277811c6b7bbb6dcd4949975.tar.gz nx-libs-eded33173b275b08277811c6b7bbb6dcd4949975.tar.bz2 nx-libs-eded33173b275b08277811c6b7bbb6dcd4949975.zip |
nxagent: Print correct application in usage message.
Fixes ArcticaProject/nx-libs#639.
Diffstat (limited to 'nx-X11/programs')
-rw-r--r-- | nx-X11/programs/Xserver/os/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/os/utils.c b/nx-X11/programs/Xserver/os/utils.c index 0ebb64487..01666326e 100644 --- a/nx-X11/programs/Xserver/os/utils.c +++ b/nx-X11/programs/Xserver/os/utils.c @@ -556,7 +556,12 @@ AdjustWaitForDelay (void * waitTime, unsigned long newdelay) void UseMsg(void) { +#ifdef NXAGENT_SERVER + extern const char *__progname; + ErrorF("Usage: %s [<options>] [:<display>]\n\n", __progname); +#else ErrorF("use: X [:<display>] [option]\n"); +#endif ErrorF("-a # mouse acceleration (pixels)\n"); ErrorF("-ac disable access control restrictions\n"); #ifdef MEMBUG |