summaryrefslogtreecommitdiff
path: root/timehint.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-05-11 08:50:56 -0400
committerEric S. Raymond <esr@thyrsus.com>2016-05-11 08:50:56 -0400
commitf1618dcffb8b2f59108fcb7a5bfe6a132af2d783 (patch)
treed1e4e0d357b521fc97536dcdb43d2b616023278f /timehint.c
parentb8ccd67ca2213b421a2ef3acd6d759e79ef993d1 (diff)
downloadgpsd-f1618dcffb8b2f59108fcb7a5bfe6a132af2d783.tar.gz
Thinko fix.
Diffstat (limited to 'timehint.c')
-rw-r--r--timehint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/timehint.c b/timehint.c
index 4444df1c..abe15b57 100644
--- a/timehint.c
+++ b/timehint.c
@@ -449,7 +449,7 @@ void ntpshm_link_activate(struct gps_device_t *session)
* we're root, assume we want to use KPPS.
*/
if ((strcmp(session->pps_thread.devicename, MAGIC_HAT_GPS) == 0
- || strcmp(session->pps_thread.devicename, MAGIC_HAT_GPS) == 0)
+ || strcmp(session->pps_thread.devicename, MAGIC_LINK_GPS) == 0)
&& access("/dev/pps0", R_OK | W_OK) == 0)
session->pps_thread.devicename = "/dev/pps0";
pps_thread_activate(&session->pps_thread);