summaryrefslogtreecommitdiff
path: root/contrib/ntp/ntpq/ntpq.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/ntpq/ntpq.c')
-rw-r--r--contrib/ntp/ntpq/ntpq.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/ntp/ntpq/ntpq.c b/contrib/ntp/ntpq/ntpq.c
index 37103752e6f6..ed5c65fca194 100644
--- a/contrib/ntp/ntpq/ntpq.c
+++ b/contrib/ntp/ntpq/ntpq.c
@@ -1063,7 +1063,7 @@ getresponse(
if (n < shouldbesize) {
printf("Response packet claims %u octets payload, above %ld received\n",
- count, (long)n - CTL_HEADER_LEN);
+ count, (long)(n - CTL_HEADER_LEN));
return ERR_INCOMPLETE;
}
@@ -1196,7 +1196,10 @@ getresponse(
* If we've seen the last fragment, look for holes in the sequence.
* If there aren't any, we're done.
*/
- maybe_final:
+#if !defined(SYS_WINNT) && defined(EINTR)
+ maybe_final:
+#endif
+
if (seenlastfrag && offsets[0] == 0) {
for (f = 1; f < numfrags; f++)
if (offsets[f-1] + counts[f-1] !=