From ca96946416b5f3147380dbc431d3404e9e7f4a1c Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 18 Jul 2019 08:05:43 +0200 Subject: [PATCH] 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. --- addressing.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addressing.h b/addressing.h index 9ecc18b..9e88043 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