From: Miroslav Lichvar Date: Thu, 18 Jul 2019 06:05:43 +0000 (+0200) Subject: addressing: introduce IPSockAddr X-Git-Tag: 4.0-pre1~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca96946416b5f3147380dbc431d3404e9e7f4a1c;p=thirdparty%2Fchrony.git addressing: introduce IPSockAddr Rename NTP_Remote_Address to IPSockAddr to make it usable in non-NTP context and provide NTP_Remote_Address for compatibility. Also, change the type of port to uint16_t. --- diff --git a/addressing.h b/addressing.h index 9ecc18b4..9e880434 100644 --- a/addressing.h +++ b/addressing.h @@ -47,8 +47,10 @@ typedef struct { typedef struct { IPAddr ip_addr; - unsigned short port; -} NTP_Remote_Address; + uint16_t port; +} IPSockAddr; + +typedef IPSockAddr NTP_Remote_Address; #define INVALID_IF_INDEX -1