summaryrefslogtreecommitdiff
path: root/xgpsspeed.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2008-12-27 23:04:55 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2008-12-27 23:04:55 +0000
commit4a110dd2877bb378f8839f4922089e781e27d631 (patch)
tree06e7a083f8a28499796da97ea2b211b246760d6f /xgpsspeed.c
parente6b2b986ff8c91f2ec1f8dbc05a62f5bf9fcd91b (diff)
downloadgpsd-4a110dd2877bb378f8839f4922089e781e27d631.tar.gz
remove motif dependency, from greg troxel.
Diffstat (limited to 'xgpsspeed.c')
-rw-r--r--xgpsspeed.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/xgpsspeed.c b/xgpsspeed.c
index ad94a79e..8aecaafe 100644
--- a/xgpsspeed.c
+++ b/xgpsspeed.c
@@ -9,10 +9,9 @@
#include <math.h>
#include <X11/Intrinsic.h>
#include <X11/Shell.h>
+#include <X11/StringDefs.h>
#include <X11/Xaw/Label.h>
#include <X11/Xaw/Paned.h>
-#include <Xm/Xm.h>
-#include <Xm/XmStrDefs.h>
#include <Tachometer.h>
#include "gpsd_config.h"
@@ -63,10 +62,10 @@ static char *get_resource(Widget w, char *name, char *default_value)
/*@ -observertrans -statictrans -immediatetrans -compdestroy -nullpass @*/
xtr.resource_name = name;
xtr.resource_class = "AnyClass";
- xtr.resource_type = XmRString;
+ xtr.resource_type = XtRString;
xtr.resource_size = (Cardinal)sizeof(String);
xtr.resource_offset = 0;
- xtr.default_type = XmRImmediate;
+ xtr.default_type = XtRImmediate;
xtr.default_addr = default_value;
XtGetApplicationResources(w, &value, &xtr, 1, NULL, 0);
if (value) return value;