summaryrefslogtreecommitdiff
path: root/ntpd/refclock_true.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2018-08-20 06:07:33 +0000
committerXin LI <delphij@FreeBSD.org>2018-08-20 06:07:33 +0000
commitc7f4d2332394d5600fe4e14c530ede36b0ff29b0 (patch)
treebe0b200d6dc09373927db61d685acc61113c64c1 /ntpd/refclock_true.c
parentd14ac12f8738acac881f20b4d6244cfc22c68ead (diff)
Diffstat (limited to 'ntpd/refclock_true.c')
-rw-r--r--ntpd/refclock_true.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ntpd/refclock_true.c b/ntpd/refclock_true.c
index 2799f3ee5dee..35901392da0e 100644
--- a/ntpd/refclock_true.c
+++ b/ntpd/refclock_true.c
@@ -640,7 +640,7 @@ true_send(
size_t len = strlen(cmd);
true_debug(peer, "Send '%s'\n", cmd);
- if (write(pp->io.fd, cmd, (unsigned)len) != len)
+ if (write(pp->io.fd, cmd, len) != (ssize_t)len)
refclock_report(peer, CEVNT_FAULT);
else
pp->polls++;