summaryrefslogtreecommitdiff
path: root/ntpshm.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-27 02:15:59 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-27 02:15:59 -0500
commit6dfbdbcd8dacfea75acf493dc4a0b390867f73e7 (patch)
treec46ac3d93c8e4468fe7dd5d6e583efbcdc370aea /ntpshm.h
parent8b650d0dad26000236cb23b8a9f1d0352bbd1fbd (diff)
downloadgpsd-6dfbdbcd8dacfea75acf493dc4a0b390867f73e7.tar.gz
BUGFIX: Some versions of GCC or run modes require this change.
It is correct; the mystery is why any version accepts int as a declaration for a field that an enum can be assigned to.
Diffstat (limited to 'ntpshm.h')
-rw-r--r--ntpshm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ntpshm.h b/ntpshm.h
index c8cd3b6e..45648a8b 100644
--- a/ntpshm.h
+++ b/ntpshm.h
@@ -60,7 +60,7 @@ enum segstat_t {
OK, NO_SEGMENT, NOT_READY, BAD_MODE, CLASH};
struct shm_stat_t {
- int status;
+ enum segstat_t status;
struct timespec tvc, tvr, tvt;
int precision;
int leap;