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/conn-tools/s6-tcpclient.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/conn-tools/s6-tcpclient.c') diff --git a/src/conn-tools/s6-tcpclient.c b/src/conn-tools/s6-tcpclient.c index f2cb9d7..3085e06 100644 --- a/src/conn-tools/s6-tcpclient.c +++ b/src/conn-tools/s6-tcpclient.c @@ -1,5 +1,7 @@ /* ISC license. */ +#include +#include #include #include #include @@ -39,7 +41,7 @@ struct tflags_s unsigned int timeout ; unsigned int timeoutconn[2] ; ip46_t localip ; - uint16 localport ; + uint16_t localport ; unsigned int verbosity : 2 ; #ifdef SKALIBS_IPV6_ENABLED unsigned int ip4 : 1 ; @@ -57,7 +59,7 @@ int main (int argc, char const *const *argv) { int s ; tflags flags = TFLAGS_DEFAULT ; - uint16 remoteport ; + uint16_t remoteport ; PROG = "s6-tcpclient" ; { subgetopt_t l = SUBGETOPT_ZERO ; @@ -86,7 +88,7 @@ int main (int argc, char const *const *argv) case 'l' : flags.localname = l.arg ; break ; case 'T' : { - unsigned int n = uint_scan(l.arg, &flags.timeoutconn[0]) ; + size_t n = uint_scan(l.arg, &flags.timeoutconn[0]) ; if (!n) usage() ; if (!l.arg[n]) { -- cgit v1.3.1