diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-10 02:17:16 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-10 02:17:16 +0000 |
commit | 334d807b924427434b42d4fbae745d3d1b38a218 (patch) | |
tree | 6daf12c1e2fa07d2ac6255ef4439e2fb95a57f57 /src/clock/s6-sntpclock.c | |
parent | 43cb3ee4227de70e0225e9ac142b4d397f93cc41 (diff) | |
download | s6-networking-334d807b924427434b42d4fbae745d3d1b38a218.tar.xz |
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)
Diffstat (limited to 'src/clock/s6-sntpclock.c')
-rw-r--r-- | src/clock/s6-sntpclock.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 <sys/types.h> +#include <stdint.h> #include <unistd.h> #include <errno.h> #include <skalibs/error.h> #include <skalibs/uint16.h> #include <skalibs/uint32.h> +#include <skalibs/uint64.h> #include <skalibs/uint.h> #include <skalibs/sgetopt.h> #include <skalibs/allreadwrite.h> @@ -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" ; { |