aboutsummaryrefslogtreecommitdiff
path: root/include/ntp_psl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ntp_psl.h')
-rw-r--r--include/ntp_psl.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/ntp_psl.h b/include/ntp_psl.h
index a0c2662d44c7..c3a6846f90d0 100644
--- a/include/ntp_psl.h
+++ b/include/ntp_psl.h
@@ -4,12 +4,15 @@
/*
* Poll Skew List Item
+ * u_in32 is large enough for sub and qty so long as NTP_MAXPOLL < 31
*/
-
+#if NTP_MAXPOLL >= 31
+#include "psl_item structure needs larger type"
+#endif
typedef struct psl_item_tag {
- int sub; /* int or short? unsigned is OK, but why? */
- int qty; /* int or short? unsigned is OK, but why? */
- int msk; /* int or short? unsigned is OK */
+ u_int32 sub;
+ u_int32 qty;
+ u_int32 msk;
} psl_item;
int get_pollskew(int, psl_item *);