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-sntpclock.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/clock/s6-sntpclock.c') diff --git a/src/clock/s6-sntpclock.c b/src/clock/s6-sntpclock.c index a7bcc22..22c6727 100644 --- a/src/clock/s6-sntpclock.c +++ b/src/clock/s6-sntpclock.c @@ -1,11 +1,13 @@ /* ISC license. */ #include +#include #include #include #include #include #include +#include #include #include #include @@ -31,8 +33,8 @@ int ntp_exchange (int s, ip46_t const *ip, uint16 port, tain_t *stamps, tain_t c tain_t starttime ; uint64 ntpstamp ; ip46_t dummyip ; - uint16 dummyport ; - int r ; + uint16_t dummyport ; + ssize_t r ; tain_copynow(&starttime) ; query[0] = 35 ; /* SNTPv4, client */ if (!ntp_from_tain(&ntpstamp, &starttime)) return 0 ; @@ -87,7 +89,7 @@ int main (int argc, char const *const *argv) int sock ; int flagforce = 0 ; ip46_t ipremote ; - uint16 portremote = 123 ; + uint16_t portremote = 123 ; PROG = "s6-sntpclock" ; { -- cgit v1.3.1