From 8e56d2fdd22d9d5f2c1254183fb5c18bfc3485e2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 10 Jan 2011 14:36:36 -0500 Subject: Remove subframesflag so they're omitted uncinditionally. --- gpspipe.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'gpspipe.c') 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); } -- cgit v1.2.1