summaryrefslogtreecommitdiff
path: root/xgpsspeed.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-10-05 03:26:41 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-10-05 03:26:41 +0000
commit7f43539b3d3c1353a3410587625c9b8e8e90330c (patch)
tree25693f547e8311f501038cfbed98cc6a9301177d /xgpsspeed.c
parentde21fef00a6108561c25bc4b7129c76ae02076de (diff)
downloadgpsd-7f43539b3d3c1353a3410587625c9b8e8e90330c.tar.gz
More code polishing. Includes some portability improvements for the
serial-device code.
Diffstat (limited to 'xgpsspeed.c')
-rw-r--r--xgpsspeed.c12
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;
}
-
-
-
-