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-tcpserver-access.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/conn-tools/s6-tcpserver-access.c') diff --git a/src/conn-tools/s6-tcpserver-access.c b/src/conn-tools/s6-tcpserver-access.c index 2e14845..72a3d2f 100644 --- a/src/conn-tools/s6-tcpserver-access.c +++ b/src/conn-tools/s6-tcpserver-access.c @@ -1,5 +1,7 @@ /* ISC license. */ +#include +#include #include #include #include @@ -62,12 +64,12 @@ int main (int argc, char const *const *argv, char const *const *envp) int cdbfd = -1 ; unsigned int rulestype = 0 ; unsigned int verbosity = 1 ; - unsigned int protolen ; + size_t protolen ; s6_accessrules_result_t accepted ; ip46_t remoteip, localip ; int flagfatal = 1, flagnodelay = 0, flagdnslookup = 1, flagident = 0, flagparanoid = 0, e = 0 ; - uint16 remoteport, localport ; + uint16_t remoteport, localport ; PROG = "s6-tcpserver-access" ; { unsigned int timeout = 0 ; @@ -92,7 +94,7 @@ int main (int argc, char const *const *argv, char const *const *envp) case 'l' : localname = l.arg ; break ; case 'B' : { - register unsigned int n = str_len(l.arg) ; + register size_t n = str_len(l.arg) ; if (buffer_putnoflush(buffer_1small, l.arg, n) < n) strerr_dief1x(100, "banner too long") ; break ; -- cgit v1.2.3