summaryrefslogtreecommitdiff
path: root/xgpsspeed.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-01-02 22:38:35 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-01-02 22:38:35 +0000
commit5f8acd312cfcda3f71349f82705ae04744bcea71 (patch)
treee96d7d5ba5a3f41ff2d070cc641b429693b33f0b /xgpsspeed.c
parent628bf73f3dd3af06eadd7e7f36a2dee8ddf6737a (diff)
downloadgpsd-5f8acd312cfcda3f71349f82705ae04744bcea71.tar.gz
Raw hook now has an integer return type.
Diffstat (limited to 'xgpsspeed.c')
-rw-r--r--xgpsspeed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xgpsspeed.c b/xgpsspeed.c
index 50084e1d..9231d48a 100644
--- a/xgpsspeed.c
+++ b/xgpsspeed.c
@@ -25,9 +25,10 @@ String fallback_resources[] = {NULL};
static struct gps_data_t *gpsdata;
static Widget tacho;
-static void update_display(char *buf UNUSED)
+static int update_display(char *buf UNUSED)
{
TachometerSetValue(tacho, rint(gpsdata->speed * KNOTS_TO_MPH));
+ return 0;
}
static void handle_input(XtPointer client_data UNUSED,