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-getservbyname.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/conn-tools/s6-getservbyname.c') diff --git a/src/conn-tools/s6-getservbyname.c b/src/conn-tools/s6-getservbyname.c index 0888df5..a7ccc9d 100644 --- a/src/conn-tools/s6-getservbyname.c +++ b/src/conn-tools/s6-getservbyname.c @@ -1,5 +1,6 @@ /* ISC license. */ +#include #include #include #include @@ -10,15 +11,15 @@ int main (int argc, char const *const *argv) { char fmt[UINT16_FMT] ; - uint16 port ; + uint16_t port ; PROG = "s6-getservbyname" ; if (argc < 3) strerr_dieusage(100, USAGE) ; if (!uint160_scan(argv[1], &port)) { struct servent *se = getservbyname(argv[1], argv[2]) ; - uint16 tmpport ; + uint16_t tmpport ; if (!se) return 1 ; - tmpport = (uint16)se->s_port ; + tmpport = (uint16_t)se->s_port ; uint16_unpack_big((char const *)&tmpport, &port) ; } if ((buffer_put(buffer_1small, fmt, uint16_fmt(fmt, port)) < 0) -- cgit v1.3.1