]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
addressing: introduce IPSockAddr
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 18 Jul 2019 06:05:43 +0000 (08:05 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 18 Jul 2019 11:37:52 +0000 (13:37 +0200)
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

index 9ecc18b4c7b47260053baa67a3b4ef3dbc8c3a9c..9e880434acf5adbce14c88dfe9c993fcd3583808 100644 (file)
@@ -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