summaryrefslogtreecommitdiff
path: root/ntpd/refclock_pcf.c
diff options
context:
space:
mode:
Diffstat (limited to 'ntpd/refclock_pcf.c')
-rw-r--r--ntpd/refclock_pcf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ntpd/refclock_pcf.c b/ntpd/refclock_pcf.c
index 4379832..45b3475 100644
--- a/ntpd/refclock_pcf.c
+++ b/ntpd/refclock_pcf.c
@@ -140,7 +140,7 @@ pcf_poll(
pp = peer->procptr;
buf[0] = 0;
- if (read(pp->io.fd, buf, sizeof(buf)) < sizeof(buf) || buf[0] != 9) {
+ if (read(pp->io.fd, buf, sizeof(buf)) < (ssize_t)sizeof(buf) || buf[0] != 9) {
refclock_report(peer, CEVNT_FAULT);
return;
}