]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
remove struct so that clang-format does not insists laying out the var init over... 14097/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 6 May 2024 09:19:13 +0000 (11:19 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 6 May 2024 10:37:39 +0000 (12:37 +0200)
pdns/iputils.hh

index b13f825eabbe8f9034f926875dedb4b77cf61adb..ba088b6e4ef4ba747a182c7bb202adda2d9fde21 100644 (file)
 
 union ComboAddress
 {
-  struct sockaddr_in sin4
-  {
-  };
-  struct sockaddr_in6 sin6;
+  sockaddr_in sin4{};
+  sockaddr_in6 sin6;
 
   bool operator==(const ComboAddress& rhs) const
   {
@@ -1886,7 +1884,7 @@ bool IsAnyAddress(const ComboAddress& addr);
 bool HarvestDestinationAddress(const struct msghdr* msgh, ComboAddress* destination);
 bool HarvestTimestamp(struct msghdr* msgh, struct timeval* timeval);
 void fillMSGHdr(struct msghdr* msgh, struct iovec* iov, cmsgbuf_aligned* cbuf, size_t cbufsize, char* data, size_t datalen, ComboAddress* addr);
-int sendOnNBSocket(int fd, const struct msghdr *msgh);
+int sendOnNBSocket(int fileDesc, const struct msghdr* msgh);
 size_t sendMsgWithOptions(int socketDesc, const void* buffer, size_t len, const ComboAddress* dest, const ComboAddress* local, unsigned int localItf, int flags);
 
 /* requires a non-blocking, connected TCP socket */