summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-05-11 10:56:56 -0400
committerEric S. Raymond <esr@thyrsus.com>2016-05-11 10:56:56 -0400
commit807ba61ffadb4311bbbb0dc24b926cc708ad51a0 (patch)
tree9624b868f4c2e77f4c5978010c25eacec7b2355c /gpsd.c
parentf1618dcffb8b2f59108fcb7a5bfe6a132af2d783 (diff)
downloadgpsd-807ba61ffadb4311bbbb0dc24b926cc708ad51a0.tar.gz
Make the gpsd usage message correct for timeservice builds.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/gpsd.c b/gpsd.c
index 031ba1f6..4af349a0 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -218,9 +218,11 @@ static void usage(void)
{
(void)printf("usage: gpsd [-b] [-n] [-N] [-D n] [-F sockfile] [-G] [-P pidfile] [-S port] [-h] device...\n\
Options include: \n\
- -b = bluetooth-safe: open data sources read-only\n\
- -n = don't wait for client connects to poll GPS\n\
- -N = don't go into background\n\
+ -b = bluetooth-safe: open data sources read-only\n"
+#ifndef FORCE_NOWAIT
+" -n = don't wait for client connects to poll GPS\n"
+#endif /* FORCE_NOWAIT */
+" -N = don't go into background\n\
-F sockfile = specify control socket location\n"
#ifndef FORCE_GLOBAL_ENABLE
" -G = make gpsd listen on INADDR_ANY\n"
@@ -229,15 +231,17 @@ static void usage(void)
-D integer (default 0) = set debug level \n\
-S integer (default %s) = set port for daemon \n\
-h = help message \n\
- -V = emit version and exit.\n\
-A device may be a local serial device for GPS input, or a URL in one \n\
+ -V = emit version and exit.\n"
+#ifdef NETFEED_ENABLE
+"A device may be a local serial device for GPS input, or a URL in one \n\
of the following forms:\n\
tcp://host[:port]\n\
udp://host[:port]\n\
{dgpsip|ntrip}://[user:passwd@]host[:port][/stream]\n\
gpsd://host[:port][/device][?protocol]\n\
-in which case it specifies an input source for device, DGPS or ntrip data.\n\
-\n\
+in which case it specifies an input source for device, DGPS or ntrip data.\n"
+#endif /* NETFEED_ENABLE */
+"\n\
The following driver types are compiled into this gpsd instance:\n",
DEFAULT_GPSD_PORT);
typelist();