From 334d807b924427434b42d4fbae745d3d1b38a218 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 10 Jan 2017 02:17:16 +0000 Subject: Types fix, first pass XXX marks what must change when skalibs changes. Also started writing functions for client certificate support in sbearssl, but it's not working yet (need more high-level support from BearSSL before it can work) --- src/clock/s6-taiclockd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/clock/s6-taiclockd.c') diff --git a/src/clock/s6-taiclockd.c b/src/clock/s6-taiclockd.c index b206400..0477ec5 100644 --- a/src/clock/s6-taiclockd.c +++ b/src/clock/s6-taiclockd.c @@ -1,5 +1,8 @@ /* ISC license. */ +#include +#include +#include #include #include #include @@ -16,7 +19,7 @@ int main (int argc, char const *const *argv) { int s ; ip46_t ip = IP46_ZERO ; - uint16 port = 4014 ; + uint16_t port = 4014 ; subgetopt_t l = SUBGETOPT_ZERO ; PROG = "s6-taiclockd" ; for (;;) @@ -40,7 +43,7 @@ int main (int argc, char const *const *argv) for (;;) { char packet[256] ; - register int r = socket_recv46(s, packet, 256, &ip, &port) ; + register ssize_t r = socket_recv46(s, packet, 256, &ip, &port) ; if ((r >= 20) && !byte_diff(packet, 4, "ctai")) { tain_t now ; -- cgit v1.3.1