summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-10 14:36:36 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-10 14:36:36 -0500
commit8e56d2fdd22d9d5f2c1254183fb5c18bfc3485e2 (patch)
tree15f6889e71b1ed62c3cc47d9ddd1007a7624633c /gpspipe.c
parent0fdde9419256de23185ee412d58abb19f20a4bed (diff)
downloadgpsd-8e56d2fdd22d9d5f2c1254183fb5c18bfc3485e2.tar.gz
Remove subframesflag so they're omitted uncinditionally.
Diffstat (limited to 'gpspipe.c')
-rw-r--r--gpspipe.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 9336d5cb..98f92a2d 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -102,7 +102,6 @@ static void usage(void)
"-t Time stamp the data.\n"
"-T [format] set the timestamp format (strftime(3)-like; implies '-t')\n"
"-s [serial dev] emulate a 4800bps NMEA GPS on serial port (use with '-r').\n"
- "-S Dump gpsd subframe data.\n"
"-n [count] exit after count packets.\n"
"-v Print a little spinner.\n"
"-V Print version and exit.\n\n"
@@ -123,7 +122,6 @@ int main(int argc, char **argv)
bool new_line = true;
bool raw = false;
bool watch = false;
- bool subframe = false;
long count = -1;
int option;
unsigned int vflag = 0, l = 0;
@@ -137,7 +135,7 @@ int main(int argc, char **argv)
/*@-branchstate@*/
flags = WATCH_ENABLE;
- while ((option = getopt(argc, argv, "?dD:lhrRSwtT:vVn:s:o:")) != -1) {
+ while ((option = getopt(argc, argv, "?dD:lhrRwtT:vVn:s:o:")) != -1) {
switch (option) {
case 'D':
debug = atoi(optarg);
@@ -160,10 +158,6 @@ int main(int argc, char **argv)
flags |= WATCH_RAW;
binary = true;
break;
- case 'S':
- subframe = true;
- flags |= WATCH_SUBFRAMES;
- break;
case 'd':
daemonize = true;
break;
@@ -219,9 +213,9 @@ int main(int argc, char **argv)
exit(1);
}
- if (!raw && !watch && !binary && !subframe) {
+ if (!raw && !watch && !binary) {
(void)fprintf(stderr,
- "gpspipe: one of '-R', '-r', '-S', or '-w' is required.\n");
+ "gpspipe: one of '-R', '-r', or '-w' is required.\n");
exit(1);
}