diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2004-10-05 03:26:41 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2004-10-05 03:26:41 +0000 |
commit | 7f43539b3d3c1353a3410587625c9b8e8e90330c (patch) | |
tree | 25693f547e8311f501038cfbed98cc6a9301177d /xgpsspeed.c | |
parent | de21fef00a6108561c25bc4b7129c76ae02076de (diff) | |
download | gpsd-7f43539b3d3c1353a3410587625c9b8e8e90330c.tar.gz |
More code polishing. Includes some portability improvements for the
serial-device code.
Diffstat (limited to 'xgpsspeed.c')
-rw-r--r-- | xgpsspeed.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/xgpsspeed.c b/xgpsspeed.c index ca20a269..8dbdce6d 100644 --- a/xgpsspeed.c +++ b/xgpsspeed.c @@ -21,10 +21,6 @@ #include "xgpsspeed.icon" #include "gps.h" -#if defined(ultrix) || defined(SOLARIS) -extern double rint(); -#endif - static XrmOptionDescRec options[] = { {"-rv", "*reverseVideo", XrmoptionNoArg, "TRUE"}, {"-nc", "*needleColor", XrmoptionSepArg, NULL}, @@ -65,11 +61,9 @@ int main(int argc, char **argv) toplevel = XtVaAppInitialize(&app, "xpsspeed.ad", options, XtNumber(options), &argc, argv, fallback_resources, NULL); - while ((option = getopt(argc, argv, "h")) != -1) { switch (option) { - case 'h': - case '?': + case 'h': case '?': default: fputs("usage: gps [-h] [-rv] [-nc] [-needlecolor] [server[:port]]\n", stderr); exit(1); @@ -123,7 +117,3 @@ int main(int argc, char **argv) gps_close(gpsdata); return 0; } - - - - |