diff options
author | Cy Schubert <cy@FreeBSD.org> | 2024-05-10 15:15:56 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2024-05-26 22:55:52 +0000 |
commit | 1f833b3fc9968c3dd7ed79ccf0525ebf16c891ad (patch) | |
tree | 85801af20e3b694584668aeb39ecec75ee71f72c /include/ntp_psl.h | |
parent | ab1f1aa8333369a83ff284848fc3fc2e52d5f29f (diff) |
Diffstat (limited to 'include/ntp_psl.h')
-rw-r--r-- | include/ntp_psl.h | 11 |
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 *); |