summaryrefslogtreecommitdiff
path: root/src/clock/s6-taiclock.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-01-10 02:17:16 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-01-10 02:17:16 +0000
commit334d807b924427434b42d4fbae745d3d1b38a218 (patch)
tree6daf12c1e2fa07d2ac6255ef4439e2fb95a57f57 /src/clock/s6-taiclock.c
parent43cb3ee4227de70e0225e9ac142b4d397f93cc41 (diff)
downloads6-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-taiclock.c')
-rw-r--r--src/clock/s6-taiclock.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/clock/s6-taiclock.c b/src/clock/s6-taiclock.c
index d8d371f..bece37d 100644
--- a/src/clock/s6-taiclock.c
+++ b/src/clock/s6-taiclock.c
@@ -1,6 +1,7 @@
/* ISC license. */
#include <sys/types.h>
+#include <stdint.h>
#include <unistd.h>
#include <errno.h>
#include <skalibs/error.h>
@@ -31,8 +32,8 @@ int tain_exchange (int s, ip46_t const *ip, uint16 port, tain_t *serversays, tai
char query[N] = "ctai" ;
char answer[N] ;
ip46_t dummyip ;
- int r ;
- uint16 dummyport ;
+ ssize_t r ;
+ uint16_t dummyport ;
tain_pack(query+4, &STAMP) ;
random_string(query+20, N-20) ; /* cookie */
r = socket_sendnb46_g(s, query, N, ip, port, deadline) ;
@@ -60,7 +61,7 @@ int main (int argc, char const *const *argv)
ip46_t ipremote ;
int sock ;
int flagforce = 0 ;
- uint16 portremote = 4014 ;
+ uint16_t portremote = 4014 ;
PROG = "s6-taiclock" ;
{